File tree Expand file tree Collapse file tree 2 files changed +9
-20
lines changed
Expand file tree Collapse file tree 2 files changed +9
-20
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,6 @@ indent_style = space
2121indent_size = 2
2222
2323# Matches the exact files either package.json or .travis.yml
24- [{package.json,.travis .yml} ]
24+ [{package.json,* .yml} ]
2525indent_style = space
2626indent_size = 2
Original file line number Diff line number Diff line change 11name : Test
22
3- on : [push]
3+ on : [push, pull_request ]
44
55jobs :
66 test :
77 runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ node-version : [ 18, 20, 22 ]
811 steps :
9- - uses : actions/checkout@v1
10- - name : Cache
11- id : cache
12- uses : actions/cache@v1.0.0
13- with :
14- path : node_modules
15- key : ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
16- restore-keys : |
17- ${{ runner.OS }}-build-${{ env.cache-name }}-
18- ${{ runner.OS }}-build-
19- ${{ runner.OS }}-
12+ - uses : actions/checkout@v4
2013 - name : Use Node.js ${{ matrix.node-version }}
21- uses : actions/setup-node@v1
14+ uses : actions/setup-node@v4
2215 with :
23- node-version : 12
16+ node-version : ${{ matrix.node-version }}
17+ cache : ' npm'
2418 - name : Install Dependencies
25- if : steps.cache.outputs.cache-hit != 'true'
2619 run : npm ci
27- env :
28- CI : true
2920 - name : npm test
3021 run : npm test
31- env :
32- CI : true
You can’t perform that action at this time.
0 commit comments