-
Notifications
You must be signed in to change notification settings - Fork 347
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
How Might One Specify Separate Working Directories for Start Parameter on Github Action #368
Comments
I'm facing the same issue, any updates on this? Or did you find a workaround @J0 ? |
Hey @alvaromartmart , Thanks for reaching out! I unfortunately did not figure out an effective workaround. Let me know what you come up with or if there’s any way I can help. Joel |
We're also facing this issue I believe. Our cypress tests are in a sub/subdirectory of our monorepo, so the working directory needs to be that. but the package.json script that starts up the server is in the root directory. I tried creating a shell script called start_app.sh in the subdir for our cypress tests that just does:
But when I set the start command to be that shell command I get
This is really putting a block on our ability to run cypress in a GitHub action. If anyone has any bright ideas, I'm all ears! |
Alright so turns out we were able to get this to work just as I was typign this up by just running a yarn start:app as define din teh root package.json. I'm honestly surprised that worked. We've got other issues now, but this one seems to be at least starting up the app from what we can see. |
I'm trying to integrate Cypress Tests with a Phoenix application on a Github Actions workflow. In order to allow the tests to pass the it seems like the Phoenix backend needs to be up on port 4000. To support this, I'm attempting to use the
start
parameter to runmix phx.server
(This brings up the Phoenix backend). However, due to the way Phoenix applications are structured cypress is located in./assets
while the command to start the servermix phx.server
depends on files in.
I would like to check if there's a way to specify separate working directories for start and the cypress github action.
I initially tried setting the working-directory parameter but it would configure both the cypress run and the server to run from that directory(assets). Due to the way Phoenix projects are structured.
For added context, this question emerged from a discussion on the Cypress Gitter and I was directed to post the question here.
Here's what I posted:
Do let me know if you have any suggestions or if there's any additional information I should provide. Any help would be deeply appreciated. Thanks!
The text was updated successfully, but these errors were encountered: