Skip to content

Continuous Integration

Jorge Sánchez Fernández edited this page Sep 15, 2021 · 4 revisions

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.

Github Pages

To apply CI, we use Github Pages. You can find the latest builds on EyeSeeTea/malaria-threats-map/actions.

Workflow

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.

Jobs

The CI build is configured in jobs.

Unit tests

In this Job the next steps are executed:

  • Checkout repository
  • Setup Node
  • Install Dependencies
  • Run jest tests
  • Run typescript tests

Cypress 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.

Clone this wiki locally