@@ -185,7 +185,7 @@ jobs:
185185 run : |
186186 if npm -ps ls nyc | grep -q nyc; then
187187 npm run test-ci
188- cp coverage/lcov.info "coverage/${{ matrix.name }}.lcov"
188+ cp coverage/lcov.info "coverage/${{ matrix.node-version }}.lcov"
189189 else
190190 npm test
191191 fi
@@ -198,16 +198,15 @@ jobs:
198198 if : steps.list_env.outputs.nyc != ''
199199 run : |
200200 if [[ -d ./coverage ]]; then
201- mv ./coverage "./${{ matrix.name }}"
201+ mv ./coverage "./${{ matrix.node-version }}"
202202 mkdir ./coverage
203- mv "./${{ matrix.name }}" "./coverage/${{ matrix.name }}"
203+ mv "./${{ matrix.node-version }}" "./coverage/${{ matrix.node-version }}"
204204 fi
205205
206206 - name : Upload code coverage
207- uses : actions/upload-artifact@v3
207+ uses : actions/upload-artifact@v4
208208 if : steps.list_env.outputs.nyc != ''
209209 with :
210- name : coverage
211210 path : ./coverage
212211 retention-days : 1
213212
@@ -222,11 +221,13 @@ jobs:
222221 run : sudo apt-get -y install lcov
223222
224223 - name : Collect coverage reports
225- uses : actions/download-artifact@v3
224+ uses : actions/download-artifact@v4
226225 with :
227- name : coverage
228226 path : ./coverage
229227
228+ - name : Debug coverage directory
229+ run : find ./coverage -type f
230+
230231 - name : Merge coverage reports
231232 shell : bash
232233 run : find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./coverage/lcov.info
0 commit comments