@@ -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,16 +198,15 @@ 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
210
path : ./coverage
212
211
retention-days : 1
213
212
@@ -222,11 +221,13 @@ jobs:
222
221
run : sudo apt-get -y install lcov
223
222
224
223
- name : Collect coverage reports
225
- uses : actions/download-artifact@v3
224
+ uses : actions/download-artifact@v4
226
225
with :
227
- name : coverage
228
226
path : ./coverage
229
227
228
+ - name : Debug coverage directory
229
+ run : find ./coverage -type f
230
+
230
231
- name : Merge coverage reports
231
232
shell : bash
232
233
run : find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./coverage/lcov.info
0 commit comments