Skip to content

test: convert pnpm workflow to os matrix #1226

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
merged 1 commit into from
Jul 29, 2024

Conversation

MikeMcC399
Copy link
Collaborator

Issues

Several jobs in the workflow .github/workflows/example-basic-pnpm.yml are repeated with the only difference being the operating system:

  • ubuntu-20.04
  • ubuntu-22.04
  • windows-latest
  • macos-latest

The final job basic-pnpm-without-binary-install is proof that issue #327 from 2021 was resolved. This job is redundant, since it was copied from .github/workflows/example-basic.yml and it does not correspond to an actual full use-case, since no tests are run.

The jobs use npx which is not a native pnpm command.

Change

  1. Convert the workflow into a GitHub Actions matrix for the following operating systems, preferring fixed versions from the available GitHub Actions runner images, equivalent to current latest tags:

    • ubuntu-22.04
    • windows-2022
    • macos-14
  2. Replace npx using pnpm exec.

  3. Drop the job basic-pnpm-without-binary-install.

@cypress-app-bot
Copy link

@MikeMcC399 MikeMcC399 added the type: enhancement New feature or request label Jul 28, 2024
@MikeMcC399 MikeMcC399 self-assigned this Jul 28, 2024
@MikeMcC399

This comment was marked as outdated.

@MikeMcC399 MikeMcC399 marked this pull request as ready for review July 28, 2024 11:23
@jennifer-shehane jennifer-shehane merged commit 55398cb into cypress-io:master Jul 29, 2024
74 checks passed
@MikeMcC399 MikeMcC399 deleted the pnpm-os-matrix branch July 29, 2024 14:38
Copy link

🎉 This PR is included in version 6.7.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

aayushshah15 pushed a commit to useblacksmith/cypress-io that referenced this pull request Dec 3, 2024
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