On SO the question was flagged as not “specific” enough, hope someone can give me a hint here:
- elixir/phoenix API app
- Vue client app
- e2e tests: nightwatchjs.org
Currently I run the e2e tests locally every time before deployment. I want to automate this.
Current steps to run the e2e tests correctly:
Drop, create, migrate, seed DB & start server
npm run e2e-server
npm run e2e
The API and the Client are in 2 separate repo’s. How do I get them to interact in order to execute the e2e tests, when I deploy my client to gitlab?
I got this tip from the elixir forum:
How about simply cloning each others repo in tests? By setting up read only deploy keys this should work. Even the repo itself is just cloned into the runner albeit automatically.
So the idea will be to add something like this to the
- git clone the other repo, by setting up “read only deploy keys”
- run the commands for the API
- run the e2e
I’ll be posting updates here. Or if someone has tips, let me know.