11name : ci
2+
23on :
34 push :
45 branches :
1112 test :
1213 runs-on : ubuntu-latest
1314 strategy :
15+ fail-fast : false
1416 matrix :
1517 name :
1618 - Node.js 0.8
3941 - Node.js 21.x
4042 - Node.js 22.x
4143 - Node.js 23.x
44+ - Node.js 24.x
45+ - Node.js 25.x
4246
4347 include :
4448 - name : Node.js 0.8
@@ -84,33 +88,34 @@ jobs:
8488
8589 - name : Node.js 8.x
8690 node-version : " 8"
87- 91+ 8892
8993 - name : Node.js 9.x
9094 node-version : " 9"
91- 95+ 9296
9397 - name : Node.js 10.x
9498 node-version : " 10"
95- 99+ 96100
97101 - name : Node.js 11.x
98102 node-version : " 11"
99- 103+ 100104
101105 - name : Node.js 12.x
102106 node-version : " 12"
103- 107+ 104108
105109 - name : Node.js 13.x
106110 node-version : " 13"
107- 111+ 108112
109113 - name : Node.js 14.x
110114 node-version : " 14"
111115
112116 - name : Node.js 15.x
113117 node-version : " 15"
118+ 114119
115120 - name : Node.js 16.x
116121 node-version : " 16"
@@ -136,6 +141,12 @@ jobs:
136141 - name : Node.js 23.x
137142 node-version : " 23"
138143
144+ - name : Node.js 24.x
145+ node-version : " 24"
146+
147+ - name : Node.js 25.x
148+ node-version : " 25"
149+
139150 steps :
140151 - uses : actions/checkout@v4
141152
@@ -207,26 +218,19 @@ jobs:
207218 if : steps.list_env.outputs.eslint != ''
208219 run : npm run lint
209220
210- - name : Collect code coverage
211- if : steps.list_env.outputs.nyc != ''
212- run : |
213- if [[ -d ./coverage ]]; then
214- mv ./coverage "./${{ matrix.name }}"
215- mkdir ./coverage
216- mv "./${{ matrix.name }}" "./coverage/${{ matrix.name }}"
217- fi
218-
219221 - name : Upload code coverage
220- uses : actions/upload-artifact@v3
221- if : steps.list_env.outputs.nyc != ''
222+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
222223 with :
223- name : coverage
224- path : ./coverage
224+ name : coverage-node-${{ matrix.node-version }}
225+ path : ./coverage/lcov.info
225226 retention-days : 1
226227
227228 coverage :
228229 needs : test
229230 runs-on : ubuntu-latest
231+ permissions :
232+ contents : read
233+ checks : write
230234 steps :
231235 - uses : actions/checkout@v4
232236
@@ -235,16 +239,16 @@ jobs:
235239 run : sudo apt-get -y install lcov
236240
237241 - name : Collect coverage reports
238- uses : actions/download-artifact@v3
242+ uses : actions/download-artifact@v6
239243 with :
240- name : coverage
241244 path : ./coverage
245+ pattern : coverage-node-*
242246
243247 - name : Merge coverage reports
244248 shell : bash
245- run : find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./coverage/ lcov.info
249+ run : find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info
246250
247251 - name : Upload coverage report
248- uses : coverallsapp/github-action@master
252+ uses : coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
249253 with :
250- github-token : ${{ secrets.GITHUB_TOKEN }}
254+ file : ./lcov.info
0 commit comments