File tree 2 files changed +46
-43
lines changed
2 files changed +46
-43
lines changed Original file line number Diff line number Diff line change
1
+ name : Chai HTTP
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ push :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ build :
13
+ name : Test on node ${{ matrix.node_version }}
14
+ runs-on : ubuntu-latest
15
+ strategy :
16
+ matrix :
17
+ node_version :
18
+ - 8 # to be removed 2020-01
19
+ - 10 # to be removed 2021-01
20
+ - x.x.x # safety net; don't remove
21
+ steps :
22
+ - uses : actions/checkout@v1
23
+ - uses : actions/setup-node@v1
24
+ with :
25
+ node-version : ${{ matrix.node_version }}
26
+ - run : npm i -g npm@6 && npm ci
27
+ - run : npm test
28
+ - uses : coverallsapp/github-action@v1.0.1
29
+ with :
30
+ github-token : ${{ secrets.github_token }}
31
+
32
+
33
+ publish-npm :
34
+ needs : build
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - uses : actions/checkout@v1
38
+ - uses : actions/setup-node@v1
39
+ with :
40
+ node-version : 12
41
+ registry-url : https://registry.npmjs.org/
42
+ - run : npm run release
43
+ if : github.event == 'push'
44
+ env :
45
+ NPM_TOKEN : ${{secrets.NPM_TOKEN}}
46
+ GITHUB_TOKEN : ${{secrets.github_token}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments