Skip to content

Commit

Permalink
chore: update upload and download artifact actions (#3292)
Browse files Browse the repository at this point in the history
* update upload and download artifact actions

* update checkout action

* overwriteartifacts

* add unique artifacts

* add coverage pattern
  • Loading branch information
Mnickii authored Sep 11, 2024
1 parent d2add09 commit 0250086
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ jobs:
- run: yarn test

- name: Archive test results
uses: actions/upload-artifact@v2 # upload test results
uses: actions/upload-artifact@v4 # upload test results
if: always() # run this step even if previous step failed
with:
name: test-results
name: test-results-${{ matrix.node-version }}
path: testResults/junit.xml
- name: Archive coverage artifacts
uses: actions/upload-artifact@v3 # upload coverage rartifacts
uses: actions/upload-artifact@v4 # upload coverage rartifacts
if: always() # run this step even if previous step failed
with:
name: coverage
name: coverage-${{ matrix.node-version }}
path: coverage/

- name: Code Coverage Summary Report
Expand Down Expand Up @@ -81,11 +81,12 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: coverage
pattern: coverage-*
merge-multiple: true
path: coverage/

- name: Run sonar cloud analysis
Expand Down

0 comments on commit 0250086

Please sign in to comment.