7474 id : yarn-cache-dir-path
7575 run : echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
7676 - name : Cache Yarn dependencies
77- uses : actions/cache@v3
77+ uses : actions/cache@v4
7878 with :
7979 # Cache entire Yarn cache directory (see previous step)
8080 path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -101,10 +101,10 @@ jobs:
101101 # so that it can be shared with the 'codecov' job (see below)
102102 # NOTE: Angular CLI only supports code coverage for specs. See https://github.com/angular/angular-cli/issues/6286
103103 - name : Upload code coverage report to Artifact
104- uses : actions/upload-artifact@v3
104+ uses : actions/upload-artifact@v4
105105 if : matrix.node-version == '18.x'
106106 with :
107- name : dspace-angular coverage report
107+ name : coverage-report-${{ matrix.node-version }}
108108 path : ' coverage/dspace-angular/lcov.info'
109109 retention-days : 14
110110
@@ -135,19 +135,19 @@ jobs:
135135 # Cypress always creates a video of all e2e tests (whether they succeeded or failed)
136136 # Save those in an Artifact
137137 - name : Upload e2e test videos to Artifacts
138- uses : actions/upload-artifact@v3
138+ uses : actions/upload-artifact@v4
139139 if : always()
140140 with :
141- name : e2e-test-videos
141+ name : e2e-test-videos-${{ matrix.node-version }}
142142 path : cypress/videos
143143
144144 # If e2e tests fail, Cypress creates a screenshot of what happened
145145 # Save those in an Artifact
146146 - name : Upload e2e test failure screenshots to Artifacts
147- uses : actions/upload-artifact@v3
147+ uses : actions/upload-artifact@v4
148148 if : failure()
149149 with :
150- name : e2e-test-screenshots
150+ name : e2e-test-screenshots-${{ matrix.node-version }}
151151 path : cypress/screenshots
152152
153153 - name : Stop app (in case it stays up after e2e tests)
@@ -197,7 +197,7 @@ jobs:
197197
198198 # Download artifacts from previous 'tests' job
199199 - name : Download coverage artifacts
200- uses : actions/download-artifact@v3
200+ uses : actions/download-artifact@v4
201201
202202 # Now attempt upload to Codecov using its action.
203203 # NOTE: We use a retry action to retry the Codecov upload if it fails the first time.
@@ -207,11 +207,12 @@ jobs:
207207 - name : Upload coverage to Codecov.io
208208 uses : Wandalen/wretry.action@v1.3.0
209209 with :
210- action : codecov/codecov-action@v3
210+ action : codecov/codecov-action@v4
211211 # Ensure codecov-action throws an error when it fails to upload
212212 # This allows us to auto-restart the action if an error is thrown
213213 with : |
214214 fail_ci_if_error: true
215+ token: ${{ secrets.CODECOV_TOKEN }}
215216 # Try re-running action 5 times max
216217 attempt_limit : 5
217218 # Run again in 30 seconds
0 commit comments