-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add GitHub Actions CI #286
Comments
Would love to see GitHub actions CI implemented on the repo! |
@amirrustam was working on it, seems actions are still missing proper NPM caching and also the environment variables for parallel runs are somewhat tricky |
Working closely with GH team to on this that will potentially improve some of these beta-level wrinkles for everyone. |
I was smoothly able to record on dashboard with the new Github Actions |
Also have setup a really simplistic version here |
Any idea how to get an environment variable from Github Actions that we can use for --ci-build-id? |
@mikecousins you can setup env var from the Github repo settings ans use them like so:
|
Yeah but we need something unique on every run like a build id, build number, etc. Closest I can see in Github is the commit sha, but then it's not re-runnable. |
I have got it pushing into cypress with parallel, but it doesn't seem to connect back and pass the checks to the github integration. I have set a few of the git related env vars that don't seem to fill in, but it still seems to be missing something. I have an open PR that I am working through switching from Travis CI recording to Github Actions. Below are the env vars I have set so far.
|
What are you using for your --ci-build-id @jbolda? |
Basically just the commit sha because as you mentioned, don't seem to have any other choice. I thought about maybe trying to grab a timestamp, but didn't want to reinvent the wheel if a better option might be coming. |
Depending on your setup, commit sha is not the really the most unique CI build id, and might lead to issues. You could generate a UUID for each run instead. |
Related: cypress-io/cypress#5609 |
🎉 This issue has been resolved in version 1.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
To show how to run Cypress e2e tests using the new GitHub Actions CI
The text was updated successfully, but these errors were encountered: