Skip to content

test: add setup-node to using-action workflow #936

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

Merged

Conversation

MikeMcC399
Copy link
Collaborator

Issue

The workflow .github/workflows/using-action.yml runs using the GitHub Actions runner default Node.js version 18.20.7 in windows-latest / windows-2022. This is not compatible with the configured [email protected], which requires Node.js >= 20.8.1.

The job parallel-runs-across-platforms displays a warning in the step run tests:

npm warn EBADENGINE Unsupported engine

Change

Add the following to each job in the workflow .github/workflows/using-action.yml to ensure a consistent Node.js version is being used:

      - name: Set up Node.js
        uses: actions/setup-node@v4
        with:
          node-version-file: .node-version

Verification

Check all jobs of workflow .github/workflows/using-action.yml and ensure there are no EBADENGINE warnings.

@cypress-app-bot
Copy link
Collaborator

@jennifer-shehane jennifer-shehane merged commit 8d10f64 into cypress-io:master Mar 25, 2025
12 checks passed
@MikeMcC399 MikeMcC399 deleted the using-action/setup-node branch March 25, 2025 16:16
@cypress-app-bot
Copy link
Collaborator

🎉 This PR is included in version 3.1.3 🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants