File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change 4
4
branches :
5
5
- master
6
6
pull_request :
7
- types : [opened, synchronize]
7
+ types : [opened, synchronize, reopened ]
8
8
9
9
jobs :
10
10
test :
11
+ name : Run tests on Node.js ${{ matrix.node-version }}
11
12
runs-on : ubuntu-latest
12
13
strategy :
13
14
matrix :
14
- node_version : [8, 10, 12]
15
+ node-version : [8, 10, 12]
15
16
16
17
steps :
17
- - uses : actions/checkout@v4
18
- - name : Use Node.js ${{ matrix.node_version }}
18
+ - name : Checkout repository
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Setup Node.js
19
22
uses : actions/setup-node@v4
20
23
with :
21
- node-version : ${{ matrix.node_version }}
22
- - name : Install
24
+ node-version : ${{ matrix.node-version }}
25
+
26
+ - name : Install dependencies
23
27
run : npm ci
24
- - name : Test
28
+
29
+ - name : Run tests
25
30
run : npm test
26
31
32
+ - name : Collect coverage
33
+ uses : coverallsapp/github-action@v2
34
+ with :
35
+ flag-name : run-${{ join(matrix.*, '-') }}
36
+ parallel : true
37
+
27
38
coverage :
39
+ name : Publish coverage
28
40
needs : test
29
41
runs-on : ubuntu-latest
30
42
steps :
31
- -
uses :
coverallsapp/[email protected]
43
+ - name : Publish coverage
44
+ uses : coverallsapp/github-action@v2
32
45
with :
33
- github-token : ${{ secrets.GITHUB_TOKEN }}
34
46
parallel-finished : true
You can’t perform that action at this time.
0 commit comments