From fd2f66f5f96fc377ece862b051a782ede181a047 Mon Sep 17 00:00:00 2001 From: Mircea Nistor Date: Thu, 31 Oct 2024 19:27:11 +0100 Subject: [PATCH] chore(ci): bump action/upload-artifact to v4 (#1428) Signed-off-by: Mircea Nistor --- .github/workflows/build-and-test-on-pr.yml | 9 +++++---- .github/workflows/build-test-publish-on-push.yml | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) 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