Skip to content

Commit 0250086

Browse files
authored
chore: update upload and download artifact actions (#3292)
* update upload and download artifact actions * update checkout action * overwriteartifacts * add unique artifacts * add coverage pattern
1 parent d2add09 commit 0250086

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/pr.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ jobs:
3939
- run: yarn test
4040

4141
- name: Archive test results
42-
uses: actions/upload-artifact@v2 # upload test results
42+
uses: actions/upload-artifact@v4 # upload test results
4343
if: always() # run this step even if previous step failed
4444
with:
45-
name: test-results
45+
name: test-results-${{ matrix.node-version }}
4646
path: testResults/junit.xml
4747
- name: Archive coverage artifacts
48-
uses: actions/upload-artifact@v3 # upload coverage rartifacts
48+
uses: actions/upload-artifact@v4 # upload coverage rartifacts
4949
if: always() # run this step even if previous step failed
5050
with:
51-
name: coverage
51+
name: coverage-${{ matrix.node-version }}
5252
path: coverage/
5353

5454
- name: Code Coverage Summary Report
@@ -81,11 +81,12 @@ jobs:
8181
runs-on: ubuntu-latest
8282
needs: build
8383
steps:
84-
- uses: actions/checkout@v3
84+
- uses: actions/checkout@v4
8585

86-
- uses: actions/download-artifact@v3
86+
- uses: actions/download-artifact@v4
8787
with:
88-
name: coverage
88+
pattern: coverage-*
89+
merge-multiple: true
8990
path: coverage/
9091

9192
- name: Run sonar cloud analysis

0 commit comments

Comments
 (0)