Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: bump shfmt to 3.5.1, simplify CI setup
1. Bump shfmt to v3.5.1. Release notes: https://github.com/mvdan/sh/releases 2. Since shfmt v3.5.0, specifying -l bash (or -l bats) is no longer necessary. Therefore, we can use shfmt -f to get the list of all shell files, and supply the list as an argument to shfmt. 3. Use shfmt docker image, so that we don't have to install anything explicitly. This greatly simplifies the shfmt CI job. Add localshfmt target so developers can still use a local shfmt binary when necessary. Unfortunately, we can't use shfmt -f together with Docker (unless we run not one but two containers, that is), so let's use git ls-files and a couple of greps to find out all shell files. Signed-off-by: Kir Kolyshkin <[email protected]>
- Loading branch information