How to run Japa tests in CI #3758
evoactivity
started this conversation in
Cookbooks
Replies: 2 comments
-
This is very good. I had a go with the bitbutcket pipelines, I gave up after some time as there's a lot of other stuff to do. But I love your idea! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ty Liam! But I'm getting this error: Run node ace test Error: ENOENT: no such file or directory, open '/__w/appname/appname/.env' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have put together a bare bones example of running the adonis test suite using github actions.
This is as simple as the workflow can be, additional caching could be added to speed up the installation steps etc but I think keeping it as simple as possible allows people to more easily adjust it to fit their needs.
The action is configured to run on each push and it will
node ace test
You will need to
What would be good to see is people contributing configs for other CI tools for instance a GitLab CI config, Travis, Jenkins etc. I would love to collect a set of bare bones configs to share with the community. So if you can, please share in this thread the configurations you are using to build, test and or deploy your adonis applications it would be great to come to a community consensus on best practices.
Ultimately these configs could make their way back into Adonis's templates so all new projects can come per-configured to test in CI.
I hope this helps someone else get started with their CI workflow :)
Beta Was this translation helpful? Give feedback.
All reactions