66 pull_request :
77 branches : [master]
88
9+ # Allow one concurrent deployment
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : true
13+
914jobs :
1015 lint :
1116 runs-on : ubuntu-latest
1217 steps :
13- - uses : actions/checkout@v5
18+ - uses : actions/checkout@v6
1419 - uses : actions/setup-node@v6
20+ - uses : actions/cache@v4
21+ with :
22+ path : node_modules
23+ key : ${{ runner.os }}-${{ hashFiles('package.json') }}-${{ github.ref }}
1524 - name : Install Packages
1625 run : npm install -f
1726 - name : Lint
@@ -22,16 +31,15 @@ jobs:
2231 runs-on : ubuntu-latest
2332 strategy :
2433 matrix :
25- node-version : [16.x, 18.x, 20.x]
34+ node-version : [16.x, 18.x, 20.x, 22.x, 24.x ]
2635 steps :
27- - uses : actions/checkout@v5
36+ - uses : actions/checkout@v6
2837 - name : Use Node.js ${{ matrix.node-version }}
2938 uses : actions/setup-node@v6
3039 with :
3140 node-version : ${{ matrix.node-version }}
32- - name : Install Target Packages
33- run : |+
34- npm install --legacy-peer-deps
41+ - name : Install Packages
42+ run : npm install -f
3543 - name : Test
3644 run : npm test
3745 test-for-old-node :
5159 npm install --legacy-peer-deps
5260 - name : Test
5361 run : npm test
54- test-and-coverage :
55- runs-on : ubuntu-latest
56- steps :
57- - uses : actions/checkout@v5
58- - uses : actions/setup-node@v6
59- with :
60- node-version : 24.x
61- - name : Install Packages
62- run : npm install
63- - name : Test
64- run : npm run test:nyc
65- - name : Coveralls GitHub Action
66- uses : coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
67- with :
68- github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments