@@ -185,7 +185,7 @@ jobs:
185
185
run : |
186
186
if npm -ps ls nyc | grep -q nyc; then
187
187
npm run test-ci
188
- cp coverage/lcov.info "coverage/${{ matrix.name }}.lcov"
188
+ cp coverage/lcov.info "coverage/${{ matrix.node-version }}.lcov"
189
189
else
190
190
npm test
191
191
fi
@@ -198,17 +198,17 @@ jobs:
198
198
if : steps.list_env.outputs.nyc != ''
199
199
run : |
200
200
if [[ -d ./coverage ]]; then
201
- mv ./coverage "./${{ matrix.name }}"
201
+ mv ./coverage "./${{ matrix.node-version }}"
202
202
mkdir ./coverage
203
- mv "./${{ matrix.name }}" "./coverage/${{ matrix.name }}"
203
+ mv "./${{ matrix.node-version }}" "./coverage/${{ matrix.node-version }}"
204
204
fi
205
205
206
206
- name : Upload code coverage
207
- uses : actions/upload-artifact@v3
207
+ uses : actions/upload-artifact@v4
208
208
if : steps.list_env.outputs.nyc != ''
209
209
with :
210
- name : coverage
211
- path : ./coverage
210
+ name : coverage-${{ matrix.node-version }}
211
+ path : " ./coverage/${{ matrix.node-version }} "
212
212
retention-days : 1
213
213
214
214
coverage :
@@ -222,11 +222,13 @@ jobs:
222
222
run : sudo apt-get -y install lcov
223
223
224
224
- name : Collect coverage reports
225
- uses : actions/download-artifact@v3
225
+ uses : actions/download-artifact@v4
226
226
with :
227
- name : coverage
228
227
path : ./coverage
229
228
229
+ - name : Debug coverage directory
230
+ run : find ./coverage -type f
231
+
230
232
- name : Merge coverage reports
231
233
shell : bash
232
234
run : find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./coverage/lcov.info
0 commit comments