-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize GitHub action workflow scope
Before all jobs were summarized in the `ci` workflow [1] but not separated by their scope, e.g. only Node specific tasks. The workflow was also not optimized to only run when specific files have been changed which results in false-positive executions and wastes limited free tier and developer time. Therefore the `ci` workflow has been optimized. >> CI Node The new `ci-node` workflow… - only runs when any `*.js`, `*.json`, `*.md`, `*.yaml` and `*.yml` file has been modified. This matches the lint-staged [2], Prettier and remark configurations. See the extensive GitHub action documentations about `on.<push|pull_request>.paths` [4] and the filter pattern cheat sheet [5] for more details. - only runs for `ubuntu-latest` instead of a matrix with `macos-latest` and `windows-latest` since there is no platform specific code yet. - use cache `npm` dependencies which is possible as of `actions/setup-node@v2.2.0` [3]. [1]: https://github.com/svengreb/tmpl/blob/0bb40e35/.github/workflows/ci.yml [2]: https://github.com/svengreb/tmpl/blob/0bb40e35/lint-staged.config.js#L12-L13 [3]: https://github.com/actions/setup-node/releases/tag/v2.2.0 [4]: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestpaths [5]: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet GH-84
- Loading branch information
Showing
3 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters