When pushing some changes to a branch and eventually opening a Pull Request, we don't want the changes to trigger workflows when it does not need to run.
For example, if only documentation found in docs/ is changed, we do not want to run unit tests against those changes.
Refer to the image below. Tests don't really need to run if we are version incrementing right?
Solution
Change the .yml files found in .github/workflows/ to only listen for changes that are found for specific files/folders that we want to run our workflows against.
It might be wise to keep the build.yml file the same for now as we want to make sure we are validating the Node and Docker builds every time we push to master.
Issue
docs/
is changed, we do not want to run unit tests against those changes.Solution
.yml
files found in.github/workflows/
to only listen for changes that are found for specific files/folders that we want to run our workflows against.build.yml
file the same for now as we want to make sure we are validating the Node and Docker builds every time we push to master.