Github and automated tests

Whatever service you choose for automation, you will need to enable the "hooks" in your Github repositories so that the automated testing will happen. The goal is for automated tests to run every time a "pull request" is created. This way, if the pull request would have broken something, you will know in advance.

The procedure is the same for both the site repository and the data repository:

  1. Go to the repository in GitHub.
  2. Under the repository name, click "Settings".
  3. In the left sidebar, click "Branches".
  4. Make sure the "default" branch is: develop
  5. Under "Branch protection rules" click "Add rule"
  6. Under "Branch name pattern" enter develop
  7. Check the box "Require status checks to pass before merging"
  8. Under "Status checks found in the last week for this repository" check the appropriate box.

The last step above depends on your choice of automation service, but that is where you tell GitHub that some tests need to pass. Perform the steps above for both the site repository and the data repository.