-
Notifications
You must be signed in to change notification settings - Fork 2
Local CI CD Testing
When creating new workflows we have found that it is easier to use a CLI tool called act to test the workflow locally before testing in production.
To setup act, we recommend following the installation guide from the official documentation here: https://nektosact.com/installation/index.html. They offer a much more comprehensive view on how to setup the tool.
In terms of workflows, the build-and-test flow will work with no other setup aside from running Docker as an administrator. The E2E test flow will require that a .secrets file be created that contains a variable called
TEST_DB_PASSWORD=ENTERAPASSWORDHERENote: This file should NOT be checked into version management. Although it is used for testing, we think it is better to have the explicit file creation for each development setup.
_E2E _Testing locally takes anywhere from 5-10 minutes to run, depending on the internet connection. Build&UnitTest locally takes <5 minutes on average to run.
For the initial act setup we choose to use the Medium Docker config, but you may be able to interchange with the **Micro **and/or the Enterprise