Repository navigation
Continuous Integration
It's the practice of frequently integrating one's new or changed code with the existing code repository.
During this integration, the code is verified executing automatic testing.
To apply CI, we use Github Pages. You can find the latest builds on EyeSeeTea/malaria-threats-map/actions.
The workflow starts when the developer executes the push of a commit. In this action a git hook is executed running locally a yarn script executing the next subscripts:
- Format the code
- Static code analysis executing the linter
- Execute unit test
If the script runs successfully during push completion, the push to the repository is performed and CI build starts.
The CI build is configured in jobs.
In this Job the next steps are executed:
- Checkout repository
- Setup Node
- Install Dependencies
- Run jest tests
- Run typescript tests
In this Job the next steps are executed:
- Checkout repository
- Setup Node
- Install Dependencies
- Run the app
- Run Cypress tests for Staging and Production environments
You can find the CI configuration file on EyeSeeTea/malaria-threats-map/blob/master/.github/workflows/main.yml.