Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QA: add reusable actionlint workflow
The Actionlint package can check workflows for GH Actions for common errors and potential improvements. This commit adds: 1. A reusable workflow to run actionlint on all workflows in a repo. The workflow is set up to allows for optionally disabling the included shellcheck and/or pyflakes checkers. It also has an input field to, optionally, allow for passing additional command line arguments to the `actionlint` command. 2. A regular workflow which _uses_ the reusable workflow to check all workflows in _this_ repo. Keep in mind: this repo will host a number of _reusable_ workflows, which will not be used by this repo. Errors in those workflows would break the CI of packages _using_ the reusable workflows, but can easily go unnoticed when the changes are made as most of the reusable workflows will not be used by _this repo_. By running the actionlinter over all workflows in this repo, we can at least safeguard against syntax errors and other common problems, though logic errors may still go unnoticed. Refs: * https://github.com/rhysd/actionlint * https://github.com/rhysd/actionlint/blob/v1.7.4/docs/checks.md
- Loading branch information