Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(deps): update actions/cache to v4 #787

Merged

Conversation

MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Jan 28, 2024

Issue

The following workflows output a deprecation warning when run on GitHub:

Deprecation warning:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Changes

actions/cache from v3 to v4

All usage of actions/cache is migrated from v3 to v4.

  • actions/cache@v3 runs under node16
  • actions/cache@v4 runs under node20

Verification

Manually run each GitHub Actions workflow and check for success. The following workflows record to Cypress Cloud and need special handling to test in a fork:

These fail when tested unchanged in a fork with the error message:

You passed the --record flag but did not provide us your Record Key.

To tests these workflows in a fork, check out the branch of this PR and modify the projectId

'projectId': '4b7344',

to use a personal projectId and create a GitHub Actions secret DASHBOARDRECORDKEY with the corresponding Cypress Cloud Record Key available from the Cypress Cloud Project settings UI.

@cypress-app-bot
Copy link
Collaborator

@jennifer-shehane jennifer-shehane merged commit c3e41da into cypress-io:master Feb 2, 2024
12 checks passed
@MikeMcC399 MikeMcC399 deleted the update/actions/cache branch February 2, 2024 17:43
@cypress-app-bot
Copy link
Collaborator

🎉 This PR is included in version 2.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants