-
Notifications
You must be signed in to change notification settings - Fork 364
Fails if using pnpm #145
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
Comments
We would be open to PR to fix this. This would be pretty low priority for us to address ourselves since we have very few pnpm users. |
I'll see if I can find some time to do that. I imagine it'll be a relatively simple PR. |
Sorry for the delay. I've done most of the work for this PR, but I'm getting errors related to the Is the If needed, you can peek at my WIP implementation of PNPM support for Cypress's github action here: https://github.com/FFdhorkin/github-action/tree/feature/pnpm-support As an additional note, the actions unrelated to pnpm are failing at the same place. However, |
@bahmutov any idea why I'm getting that import error? |
Could you rebase from the latest code - we have started using the official |
@FFdhorkin seems close! Would be much appreciated if you could fix this :) |
I've rebased off master and opened a draft PR #381 https://github.com/penx/github-action/actions/runs/892619945 This currently fails with
|
Just installed pnpm and got blocked by this ;( @penx is there a way of using your draft branch for now, changing |
I got stuck on this but running the pnpm install and cypress separately seemed to resolve it. It's possible this isn't the best way but it got things working! - name: Set up pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 6
# Only install what we need to run the client in-action and tests against it
# format: `--filter <packagename>...`
run_install: |
- args: [--filter myclient... --filter cypress-tests...]
- name: Run Cypress tests
uses: cypress-io/github-action@v2
with:
# we have already installed all dependencies above
install: false
command: pnpm --dir cypress/ cypress:ci
start: pnpm --dir myclient/ dev
wait-on: 'https://localhost:3000' |
I also just ran into this. We are using Whats odd is
Setting |
the cypress test runner fails in ci environments. see cypress-io/github-action#145 et al. @todo try a different package manager later
A PR has been opened #586 |
🎉 This issue has been resolved in version 4.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
We are using pnpm (https://pnpm.js.org/) with our project. As such, we do not have a
package-lock.json
file. Even setting install to false fails with the cypress github action (see below).Pnpm uses a
pnpm-lock.yaml
file that serves the same purpose, and generally (though not always) has the same syntax as npm. However, the lockfile formats are not compatible.If relevant, there is a github action for pnpm: https://github.com/marketplace/actions/setup-pnpm
They also have these docs that might be relevant: https://pnpm.js.org/en/continuous-integration
The text was updated successfully, but these errors were encountered: