Common pitfalls of GitHub Actions
If you create GitHub Actions via GitHub’s UI by going to the URL of the form https://github.com///actions/new, it provides templates for setting up the build. However, the template is broken.
There are four problems with the default template
- No dependency caching – so package dependencies will be resolved and reinstalled every time
- No cancelation of stale executions – If you pushed a commit and before the tests finish, you decide to push another commit then the stale commits are not canceled. Rather they continue executing!
- No path filtering – So a change to README will trigger the execution of, for example, linters and tests!
- No timeouts – Rogue tests can run forever leading to resource exhaustion
All these are fixable.
Source: Common pitfalls of GitHub Actions.