Update actions/upload-artifact from v3 to v4 to use the latest version. Also fix E2E test artifacts generation by configuring jest-html-reporters. #2180
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #
This PR updates the GitHub Actions workflow to use
actions/upload-artifact@v4
instead of v3, as v3 will be deprecated on January 30, 2025.GitHub has announced that artifact actions v3 will be closing down by January 30, 2025. After this date, using v3 of these actions will result in workflow failures.
The following workflows have been updated to use
actions/upload-artifact@v4
:actions/upload-artifact@v4
actions/upload-artifact@v4
Additional changes
While testing changes made in this PR, I made two more changes:
I have also updated "End-to-End Tests" workflow to use
ubuntu-22.04
because of the issue mentioned in troubleshooting section. This was failing on Ubuntu 23.10+. Probably we can use some workarounds but for now, I have decided to use Ubuntu 22.04 to fix the issue.While testing "End-to-End Tests" workflow, I found that workflow wasn't generating any artifacts, even if tests were failing. I found out that we don't have reporters configured in
package.json
. I have added following topackage.json
to fix the issue.I also added
jest-html-reporters
todevDependencies
inpackage.json
.Screenshots
How to test the changes in this Pull Request:
Test "JavaScript and CSS Linting / Lint JavaScript" workflow
eslint_report.json
in the "Artifacts" section of the workflow runTest "End-to-End Tests" workflow
failures-artifacts
is available in the "Artifacts" section of the workflow run. Download and inspect the file to confirm it contains the expected content.Changelog