Skip to content

Commit

Permalink
chore(ci): bump action/upload-artifact to v4 (#1428)
Browse files Browse the repository at this point in the history
Signed-off-by: Mircea Nistor <[email protected]>
  • Loading branch information
mirceanis authored Oct 31, 2024
1 parent 7d17f37 commit fd2f66f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-and-test-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/build-test-publish-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit fd2f66f

Please sign in to comment.