diff --git a/.github/workflows/build-and-test-on-pr.yml b/.github/workflows/build-and-test-on-pr.yml index 28bdfe9f8..16d16d096 100644 --- a/.github/workflows/build-and-test-on-pr.yml +++ b/.github/workflows/build-and-test-on-pr.yml @@ -66,9 +66,9 @@ jobs: POSTGRES_PORT: 5432 run: pnpm test:integration --shard=${{ matrix.shard }}/${{ strategy.job-total }} - run: mv coverage/coverage-final.json coverage/${{matrix.shard}}.json - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: coverage-artifacts + name: coverage-artifacts-${{matrix.shard}} path: coverage/ report-coverage: @@ -78,9 +78,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: coverage-artifacts + pattern: coverage-artifacts-* + merge-multiple: true path: coverage - name: Merge Code Coverage run: npx nyc merge coverage/ coverage/coverage-final.json diff --git a/.github/workflows/build-test-publish-on-push.yml b/.github/workflows/build-test-publish-on-push.yml index 5b4e7cacb..88e6e715c 100644 --- a/.github/workflows/build-test-publish-on-push.yml +++ b/.github/workflows/build-test-publish-on-push.yml @@ -74,9 +74,9 @@ jobs: POSTGRES_PORT: 5432 run: pnpm test:integration --shard=${{ matrix.shard }}/${{ strategy.job-total }} - run: mv coverage/coverage-final.json coverage/${{matrix.shard}}.json - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: coverage-artifacts + name: coverage-artifacts-${{ matrix.shard }} path: coverage/ report-coverage: @@ -87,9 +87,10 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: coverage-artifacts + pattern: coverage-artifacts-* + merge-multiple: true path: coverage - name: Merge Code Coverage run: npx nyc merge coverage/ coverage/coverage-final.json