@@ -2,13 +2,13 @@ name: Node.js CI
22
33on :
44 push :
5- branches : [ master, v2 ]
5+ branches : [master, v2]
66 pull_request :
7- branches : [ master, v2 ]
7+ branches : [master, v2]
8+ workflow_dispatch :
89
910jobs :
1011 build :
11-
1212 runs-on : ${{ matrix.os }}
1313
1414 strategy :
@@ -17,44 +17,44 @@ jobs:
1717 fail-fast : false
1818
1919 steps :
20- - uses : actions/checkout@v3
21- - name : Use Node.js
22- uses : actions/setup-node@v3
23- with :
24- cache : npm
25- node-version : 16
26- - run : |
27- npm ci
28- npm run build
29- if [ "${{ runner.os }}" == "Windows" ]; then
30- npm run lint
31- else
32- xvfb-run --auto-servernum npm test
33- fi
34- shell: bash
35- - name : Coveralls Parallel - Chrome
36- if : runner.os != 'Windows'
37- uses : coverallsapp/github-action@master
38- with :
39- github-token : ${{ secrets.github_token }}
40- path-to-lcov : ' ./coverage/chrome/lcov.info'
41- flag-name : ${{ matrix.os }}-chrome
42- parallel : true
43- - name : Coveralls Parallel - Firefox
44- if : runner.os != 'Windows'
45- uses : coverallsapp/github-action@master
46- with :
47- github-token : ${{ secrets.github_token }}
48- path-to-lcov : ' ./coverage/firefox/lcov.info'
49- flag-name : ${{ matrix.os }}-firefox
50- parallel : true
20+ - uses : actions/checkout@v3
21+ - name : Use Node.js
22+ uses : actions/setup-node@v3
23+ with :
24+ cache : npm
25+ node-version : 16
26+ - run : |
27+ npm ci
28+ npm run build
29+ if [ "${{ runner.os }}" == "Windows" ]; then
30+ npm run lint
31+ else
32+ xvfb-run --auto-servernum npm test
33+ fi
34+ shell: bash
35+ - name : Coveralls Parallel - Chrome
36+ if : runner.os != 'Windows'
37+ uses : coverallsapp/github-action@master
38+ with :
39+ github-token : ${{ secrets.github_token }}
40+ path-to-lcov : " ./coverage/chrome/lcov.info"
41+ flag-name : ${{ matrix.os }}-chrome
42+ parallel : true
43+ - name : Coveralls Parallel - Firefox
44+ if : runner.os != 'Windows'
45+ uses : coverallsapp/github-action@master
46+ with :
47+ github-token : ${{ secrets.github_token }}
48+ path-to-lcov : " ./coverage/firefox/lcov.info"
49+ flag-name : ${{ matrix.os }}-firefox
50+ parallel : true
5151
5252 finish :
5353 needs : build
5454 runs-on : ubuntu-latest
5555 steps :
56- - name : Coveralls Finished
57- uses : coverallsapp/github-action@master
58- with :
59- github-token : ${{ secrets.github_token }}
60- parallel-finished : true
56+ - name : Coveralls Finished
57+ uses : coverallsapp/github-action@master
58+ with :
59+ github-token : ${{ secrets.github_token }}
60+ parallel-finished : true
0 commit comments