@@ -2,13 +2,13 @@ name: Node.js CI
2
2
3
3
on :
4
4
push :
5
- branches : [master, v2]
5
+ branches : [ master, v2 ]
6
6
pull_request :
7
- branches : [master, v2]
8
- workflow_dispatch :
7
+ branches : [ master, v2 ]
9
8
10
9
jobs :
11
10
build :
11
+
12
12
runs-on : ${{ matrix.os }}
13
13
14
14
strategy :
@@ -17,44 +17,44 @@ jobs:
17
17
fail-fast : false
18
18
19
19
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
51
51
52
52
finish :
53
53
needs : build
54
54
runs-on : ubuntu-latest
55
55
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