File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : test
2- on :
3- push :
4- branches :
5- - ' main'
6- - ' master'
7- pull_request :
1+ name : Test
82
9- defaults :
10- run :
11- shell : bash
3+ on : [push, pull_request]
124
135jobs :
146 test :
15- runs-on : ubuntu-latest
7+ runs-on : ${{ matrix.os }}
168 strategy :
17- fail-fast : false
9+ fail-fast : true
1810 matrix :
19- os : [ubuntu-latest]
20- node : [14, 16, 18, 20 ]
11+ os : [ubuntu-latest, windows-latest ]
12+ node-version : [lts/*, latest ]
2113 steps :
2214 - uses : actions/checkout@v4
15+ - name : Use Node.js ${{ matrix.node-version }}
16+ uses : actions/setup-node@v4
2317 with :
24- fetch-depth : 1
25- - uses : actions/setup-node@v4
26- with :
27- node-version : ${{ matrix.node }}
28-
29- - name : npm ci
30- run : npm ci --ignore-scripts
31-
32- - name : test
33- run : npm test
18+ node-version : ${{ matrix.node-version }}
19+ - run : npm ci
20+ - run : npm test
You can’t perform that action at this time.
0 commit comments