The github workflows for unit tests are configured to run unit tests are run on every push. However, it is not necessary to re-run unit tests the only changes are in /documentation/*. Similarly, the backend tests don't need to be re-run if all changes are in /frontend/*; vice versa for the frontend tests.
Re-running tests doesn't cause any immediate problems, but it's a waste of time and energy.
Not sure how this interacts with branch protections. If you make a PR that only updates the documentation, the test workflow would not be run, but we require that these checks pass to merge into develop.
The github workflows for unit tests are configured to run unit tests are run on every push. However, it is not necessary to re-run unit tests the only changes are in
/documentation/*
. Similarly, the backend tests don't need to be re-run if all changes are in/frontend/*
; vice versa for the frontend tests.Re-running tests doesn't cause any immediate problems, but it's a waste of time and energy.
Proposed solution
Configure
ignore-paths
on the github workflow. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignorePossible complication
Not sure how this interacts with branch protections. If you make a PR that only updates the documentation, the test workflow would not be run, but we require that these checks pass to merge into develop.