1
1
name : test
2
2
on :
3
- pull_request :
4
- branches :
5
- - master
6
- push :
7
- branches :
8
- - master
3
+ pull_request :
4
+ branches :
5
+ - master
6
+ push :
7
+ branches :
8
+ - master
9
9
10
10
jobs :
11
- test :
12
- runs-on : ubuntu-latest
13
- timeout-minutes : 5
14
- strategy :
15
- matrix :
16
- node : [ '12 ', '14 ', '15' ]
17
- name : Node ${{ matrix.node }} test
18
- steps :
19
- - uses : actions/checkout@v2
20
- - name : Setup node
21
- uses : actions/setup-node@v2
22
- with :
23
- node-version : ${{ matrix.node }}
24
- - run : npm ci
25
- - run : npm test
11
+ test :
12
+ runs-on : ubuntu-latest
13
+ timeout-minutes : 5
14
+ strategy :
15
+ matrix :
16
+ node : ['18 ', '20 ', '22', '23' ]
17
+ name : Node ${{ matrix.node }} test
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ - name : Setup node
21
+ uses : actions/setup-node@v2
22
+ with :
23
+ node-version : ${{ matrix.node }}
24
+ - run : npm ci
25
+ - run : npm test
26
26
27
- - name : Coveralls Parallel
28
- uses : coverallsapp/github-action@master
29
- with :
30
- github-token : ${{ secrets.github_token }}
31
- flag-name : run-${{ matrix.node }}
32
- parallel : true
27
+ - name : Coveralls Parallel
28
+ uses : coverallsapp/github-action@master
29
+ with :
30
+ github-token : ${{ secrets.github_token }}
31
+ flag-name : run-${{ matrix.node }}
32
+ parallel : true
33
33
34
- finish :
35
- name : Coveralls coverage
36
- needs : test
37
- runs-on : ubuntu-latest
38
- steps :
39
- - name : Coveralls Finished
40
- uses : coverallsapp/github-action@master
41
- with :
42
- github-token : ${{ secrets.github_token }}
43
- parallel-finished : true
34
+ finish :
35
+ name : Coveralls coverage
36
+ needs : test
37
+ runs-on : ubuntu-latest
38
+ steps :
39
+ - name : Coveralls Finished
40
+ uses : coverallsapp/github-action@master
41
+ with :
42
+ github-token : ${{ secrets.github_token }}
43
+ parallel-finished : true
0 commit comments