https://cypress.io logo
Github Actions File Directory
# i-need-help
s
Hello, Using latest Cypress 12 I'm using this as a template to get some Cypress tests running in pre-Merge: https://learn.cypress.io/tutorials/running-our-tests-with-github-actions But when I do ./cypress/e2e as seen in the screenshot Github actions looks for the tests at /home/runner/work/RootFolder/RootFolder/cypress/e2e What should my file path look like for the project directory?
m
Hi @salmon-holiday-61646 I looked at https://learn.cypress.io/tutorials/writing-end-to-end-tests-with-cypress which is the lesson previous to https://learn.cypress.io/tutorials/running-our-tests-with-github-actions which you quoted. This tutorial was written for a Cypress legacy version 9 and it hasn't been updated for the current Cypress 10+ versions including Cypress 12. The repository containing the source material is https://github.com/cypress-io/cypress-realworld-testing. If you just want to see how GitHub actions work, then you can visit https://github.com/cypress-io/github-action which includes many working examples which run on the current Cypress 12.8.1 version. Check the main README and the examples directory.
s
Great, thank you so much!
3 Views