-
Notifications
You must be signed in to change notification settings - Fork 344
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
Struggling to set up and run a basic Cypress Github Action because of Xvfb #601
Comments
Not a Cypress maintainer but I came across this issue while searching for a solution to a related problem and I'm interested to see what you find out. I ran into this same issue recently and ended up trying the advice here to use a Docker container with the necessary dependencies to run the tests in (see here). However, this still failed for me with an NPM 243 error. Do you still see this error if you run the Action in a container such as one of these provided by Cypress? |
We fixed this issue by adding this step with recommend linux dependencies and setting - name: Setup xvfb (Linux)
if: runner.os == 'Linux'
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
|
Are you still having a problem with this or can this issue be closed? Were you running on a self-hosted runner? I have not seen this problem on GitHub-hosted runners. https://on.cypress.io/required-dependencies explains about installing missing dependencies. |
Yep this problem seems to happen for self-hosted runners you need to install the dependencies using apt as mentioned by @XavierLeTohic |
Thanks for the feedback!
I would tend to suggest to close this issue and for anyone impacted to subscribe to the main Cypress one (cypress-io/cypress#19868). Maybe the original submitter @Thebarda has some comment? |
Another solution is to use the cypress included container in your github action
|
Hello, dear Cypress maintainers,
I'm using Cypress 10.3.1 and I struggle to run use a basic implementation of Cypress Github Action
Here is my job configuration:
As you may see it's a very basic configuration, nothing fancy.
And it returns the following error and verifying cypress installation:
It tried with Ubuntu 22.04 as a runner, I tried to downgrade the action to 4.1.0 and nothing resolved the issue.
What did I do wrong?
The text was updated successfully, but these errors were encountered: