Skip to content

Commit

Permalink
ci: migrate to actions/upload-artifact/merge v4
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 13, 2024
1 parent 30c4f36 commit 9946760
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,24 @@ jobs:
- name: Unit test only
run: yarn test

- name: Update coverage
- name: Upload coverage
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v4
with:
name: build-${{ github.sha }}
retention-days: 1
name: coverage-${{ github.sha }}
path: |
coverage
.nyc_output
- name: Merge artifacts
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact/merge@v4
with:
name: all-${{ github.sha }}
patterns: |
build-${{ github.sha }}
coverage-${{ github.sha }}
test_pr:
if: github.event_name == 'pull_request'
needs: build
Expand Down Expand Up @@ -108,7 +116,7 @@ jobs:
- name: Restore artifact
uses: actions/download-artifact@v4
with:
name: artifact-${{ github.run_id }}
name: all-${{ github.sha }}

- uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit 9946760

Please sign in to comment.