github-action
github-action copied to clipboard
Error "Cannot find module 'cypress'" using yarn v1.22.18
Github actions is failing with the following error for cypress v.10.0.2

This is my yaml file as mentioned here in the docs https://github.com/marketplace/actions/cypress-io#basic
name: End-to-end tests
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v4
Same problem here (not using yarn): https://github.com/cypress-io/github-action/issues/578
This is a stale issue using older action versions which are no longer supported.
github-action is generally working with Yarn in the current @v6 version and if by any chance there is still a problem, then please submit a new issue.