Skip to content

Commit 4ef4686

Browse files
authored
test(deps): update github action upload-artifact to v4 (#1098)
* test(deps): update github action upload-artifact to v4 * docs: update readme for upload-artifact@v4 usage
1 parent 7277ec2 commit 4ef4686

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/example-chrome.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# As of Cypress v8.0 the `cypress run` command
3333
# executes tests in `headless` mode by default
3434

35-
- uses: actions/upload-artifact@v3
35+
- uses: actions/upload-artifact@v4
3636
with:
3737
name: screenshots-headless-chrome
3838
path: examples/browser/cypress/screenshots
@@ -50,7 +50,7 @@ jobs:
5050
headed: true
5151
summary-title: 'Chrome headed'
5252

53-
- uses: actions/upload-artifact@v3
53+
- uses: actions/upload-artifact@v4
5454
with:
5555
name: screenshots-headed-chrome
5656
path: examples/browser/cypress/screenshots

.github/workflows/example-firefox.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
browser: firefox
2525

2626
# report screenshot size and store the screenshots as test artifacts
27-
- uses: actions/upload-artifact@v3
27+
- uses: actions/upload-artifact@v4
2828
with:
2929
name: screenshots-in-firefox
3030
path: examples/browser/cypress/screenshots

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ jobs:
372372

373373
### Project ID and Record Key
374374

375-
To record the project needs `projectId` and `recordKey`.
375+
To record the project needs `projectId` and `recordKey`.
376376

377377
Typically, the `projectId` is stored in the [Cypress Configuration File](https://docs.cypress.io/guides/references/configuration#Configuration-File), while the `recordKey` is set as a [CLI parameter](https://docs.cypress.io/guides/guides/command-line#cypress-run-record-key-lt-record-key-gt). If you want to avoid this, both the `projectId` and `recordKey` can be provided as environment variables using [GitHub secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions).
378378

@@ -424,7 +424,7 @@ jobs:
424424

425425
Please refer to the [Cypress Cloud Git information environment variables](https://on.cypress.io/guides/continuous-integration/introduction#Git-information) section in our documentation for more examples.
426426

427-
Please refer to the [default GitHub environment variables](https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables) for additional GitHub examples.
427+
Please refer to the [default GitHub environment variables](https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables) for additional GitHub examples.
428428

429429
### Automatic PR number and URL detection
430430

@@ -582,14 +582,14 @@ jobs:
582582
- uses: actions/checkout@v4
583583
- uses: cypress-io/github-action@v6
584584
# after the test run completes store videos and any screenshots
585-
- uses: actions/upload-artifact@v3
585+
- uses: actions/upload-artifact@v4
586586
# add the line below to store screenshots only on failures
587587
# if: failure()
588588
with:
589589
name: cypress-screenshots
590590
path: cypress/screenshots
591591
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
592-
- uses: actions/upload-artifact@v3
592+
- uses: actions/upload-artifact@v4
593593
with:
594594
name: cypress-videos
595595
path: cypress/videos

0 commit comments

Comments
 (0)