What is the best way to run laravel unit tests before the deploy #285
-
I am currently not sure on what the best way is to run the unit tests. On one side I would like to do it as a first step but the containers are not done at that point. What I want
I would be really thankful if you could guide me in the right direction. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Here is a good example to page through. It might not answer everything you're looking for, but it will show you an example how to get started: https://github.com/serversideup/financial-freedom/tree/main/.github/workflows See how I have "actions" and "services"? I do that so I can reuse my pipeline code. See action_pr-tests.yml and then how it calls service_install-and-test-php.yml. My other actions reuse the code components too. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Here is a good example to page through. It might not answer everything you're looking for, but it will show you an example how to get started: https://github.com/serversideup/financial-freedom/tree/main/.github/workflows
See how I have "actions" and "services"? I do that so I can reuse my pipeline code.
See action_pr-tests.yml and then how it calls service_install-and-test-php.yml.
My other actions reuse the code components too. Hope this helps!