55 branches : master
66 pull_request :
77
8+ env :
9+ NODE_VERSION : 20.17.0
10+
811jobs :
912 lint :
1013 name : Lint
1114 runs-on : ubuntu-latest
1215
1316 steps :
14- - uses : actions/checkout@v2
15- - uses : actions/setup-node@v1
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-node@v4
1619 with :
17- node-version : 16.14.0
20+ node-version : ${{ env.NODE_VERSION }}
1821 - run : npm ci
1922 - run : npm run lint
2023 env :
@@ -28,18 +31,18 @@ jobs:
2831 os : [ubuntu-latest, windows-latest]
2932
3033 steps :
31- - uses : actions/checkout@v2
34+ - uses : actions/checkout@v4
3235 - name : Use Node.js 16.14.0
33- uses : actions/setup-node@v1
36+ uses : actions/setup-node@v4
3437 with :
35- node-version : 16.14.0
38+ node-version : ${{ env.NODE_VERSION }}
3639 - run : npm ci
3740 - run : npm run build
3841 - run : npx jest --maxWorkers 2 --coverage
3942 env :
4043 CI : true
4144 - if : matrix.os == 'ubuntu-latest'
42- uses : codecov/codecov-action@v1
45+ uses : codecov/codecov-action@v4
4346
4447 benchmark :
4548 name : Benchmark
@@ -53,18 +56,18 @@ jobs:
5356 run : brew install glow
5457 # Checkout master & commit
5558 - name : Checkout master
56- uses : actions/checkout@v2
59+ uses : actions/checkout@v4
5760 with :
5861 ref : master
5962 path : master
6063 - name : Checkout commit
61- uses : actions/checkout@v2
64+ uses : actions/checkout@v4
6265 with :
6366 path : commit
6467 - name : Use Node.js 16.14.0
65- uses : actions/setup-node@v1
68+ uses : actions/setup-node@v4
6669 with :
67- node-version : 16.14.0
70+ node-version : ${{ env.NODE_VERSION }}
6871 # NPM
6972 # install and build master
7073 - name : npm ci master
@@ -124,7 +127,7 @@ jobs:
124127 working-directory : commit/benchmark/dist
125128 - name : Combine benchmark results
126129 id : script-combine-results
127- uses : actions/github-script@v3
130+ uses : actions/github-script@v7
128131 with :
129132 benchmark-result-path-lua : commit/benchmark/data/benchmark_master_vs_commit_53.json
130133 benchmark-result-path-jit : commit/benchmark/data/benchmark_master_vs_commit_jit.json
0 commit comments