File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 22
33# Version of actionlint to install: latest, or specific version number WITHOUT 'v' prefix e.g. 1.7.5
44ARG ACTIONLINT_VERSION=latest
5+ # Version of taplo to install: latest, or specific version number WITHOUT 'v' prefix e.g. 0.10.0
6+ ARG TAPLO_VERSION=latest
57# Version of hadolint to install: latest, or specific version number e.g. v2.14.0
68ARG HADOLINT_VERSION=latest
79# Version of shellcheck to install: latest, or specific version number e.g. v0.11.0
@@ -17,6 +19,7 @@ ARG SNYK_VERSION=stable
1719
1820# Images which we can directly copy the binaries from
1921FROM rhysd/actionlint:${ACTIONLINT_VERSION} AS actionlint
22+ FROM tamasfe/taplo:${TAPLO_VERSION} AS taplo
2023FROM hadolint/hadolint:${HADOLINT_VERSION} AS hadolint
2124FROM koalaman/shellcheck:${SHELLCHECK_VERSION} AS shellcheck
2225FROM mvdan/shfmt:${SHFMT_VERSION} AS shfmt
@@ -142,6 +145,9 @@ COPY --from=hadolint /bin/hadolint /usr/local/bin/hadolint
142145# Install actionlint
143146COPY --from=actionlint /usr/local/bin/actionlint /usr/local/bin/actionlint
144147
148+ # Install taplo (TOML formatter and linter)
149+ COPY --from=taplo /taplo /usr/local/bin/taplo
150+
145151# Install shellcheck
146152# Required for shellcheck vscode extension and actionlint
147153COPY --from=shellcheck /bin/shellcheck /usr/local/bin/shellcheck
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ It contains the necessary dependencies for running various linters and type chec
1919- ` reviewdog ` - for code review
2020- ` hadolint ` - for linting Dockerfile
2121- ` actionlint ` - static checker for GitHub Actions workflow files
22+ - ` taplo ` - TOML formatter and linter
2223
2324Alternative unix power tools:
2425
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ commandTests:
4949 command : " actionlint"
5050 args : ["--version"]
5151
52+ - name : " taplo is installed in path"
53+ command : " taplo"
54+ args : ["--version"]
55+
5256 - name : " watchman is installed in path"
5357 command : " watchman"
5458 args : ["--version"]
You can’t perform that action at this time.
0 commit comments