1- # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
1+ # This workflow will do a clean installation of node dependencies, build the source code and run tests across different versions of node
22# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33
44name : Node.js CI
55
66on : [push, pull_request]
77
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref }}
10+ cancel-in-progress : true
11+
812jobs :
913 tests :
1014 runs-on : ubuntu-latest
@@ -13,17 +17,13 @@ jobs:
1317 contents : write
1418 strategy :
1519 matrix :
16- node-version : [16 .x, 18 .x, 20 .x]
20+ node-version : [20 .x, 22 .x, 24 .x]
1721 steps :
1822 - run : echo "🎉 The job was triggered by a ${{ github.event_name }} event."
19- - uses : styfle/cancel-workflow-action@0.12.0
20- with :
21- workflow_id : nodejs.yml
22- access_token : ${{ secrets.GITHUB_TOKEN }}
2323 - uses : FranzDiebold/github-env-vars-action@v2
24- - uses : actions/checkout@v4
24+ - uses : actions/checkout@v6
2525 - name : Use Node.js ${{ matrix.node-version }}
26- uses : actions/setup-node@v4
26+ uses : actions/setup-node@v6
2727 with :
2828 node-version : ${{ matrix.node-version }}
2929 - name : Install node_modules
4141 env :
4242 CI : true
4343 - name : Send codecov.io stats
44- if : matrix.node-version == '18 .x'
44+ if : matrix.node-version == '20 .x'
4545 run : bash <(curl -s https://codecov.io/bash) || echo ''
4646
4747 publish :
@@ -53,11 +53,11 @@ jobs:
5353 contents : write
5454 pull-requests : write
5555 steps :
56- - uses : actions/checkout@v4
57- - name : Use Node.js 18
58- uses : actions/setup-node@v4
56+ - uses : actions/checkout@v6
57+ - name : Use Node.js 28.x
58+ uses : actions/setup-node@v6
5959 with :
60- node-version : 18 .x
60+ node-version : 28 .x
6161 - name : Install node_modules
6262 run : yarn install
6363 - name : Build
0 commit comments