Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Install shellcheck if not present in CI runner (#2882)
### Motivation: We want to be able to run the soundness checks locally, and our current guidance for this is to use `act`. However, there is a documented[^0] difference in the runner images it uses and those used by Github Actions proper. One such difference is a lack of `shellcheck` in both the small and medium runners, which _is_ present in Github's image for the `ubuntu-latest` platform. ### Modifications: There are official images for `shellcheck`: both a single binary and an alpine-based image, which are very small. Neither of these has `bash`, nor `git`, which are dependencies of the script. This PR updates the workflow to use a container for this job and uses the same image used in some other jobs, along with a step to install `shellcheck`, which is in keeping with what we do for other jobs in the soundness workflow already to e.g. install `yq`. ### Result: Can run the soundness job locally using `act`. No change in CI. [^0]: https://nektosact.com/usage/runners.html#default-runners-are-intentionally-incomplete
- Loading branch information