diff --git a/Dockerfile b/Dockerfile index e7e281c..5919cc8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,8 @@ # Version of actionlint to install: latest, or specific version number WITHOUT 'v' prefix e.g. 1.7.5 ARG ACTIONLINT_VERSION=latest +# Version of taplo to install: latest, or specific version number WITHOUT 'v' prefix e.g. 0.10.0 +ARG TAPLO_VERSION=latest # Version of hadolint to install: latest, or specific version number e.g. v2.14.0 ARG HADOLINT_VERSION=latest # Version of shellcheck to install: latest, or specific version number e.g. v0.11.0 @@ -17,6 +19,7 @@ ARG SNYK_VERSION=stable # Images which we can directly copy the binaries from FROM rhysd/actionlint:${ACTIONLINT_VERSION} AS actionlint +FROM tamasfe/taplo:${TAPLO_VERSION} AS taplo FROM hadolint/hadolint:${HADOLINT_VERSION} AS hadolint FROM koalaman/shellcheck:${SHELLCHECK_VERSION} AS shellcheck FROM mvdan/shfmt:${SHFMT_VERSION} AS shfmt @@ -142,6 +145,9 @@ COPY --from=hadolint /bin/hadolint /usr/local/bin/hadolint # Install actionlint COPY --from=actionlint /usr/local/bin/actionlint /usr/local/bin/actionlint +# Install taplo (TOML formatter and linter) +COPY --from=taplo /taplo /usr/local/bin/taplo + # Install shellcheck # Required for shellcheck vscode extension and actionlint COPY --from=shellcheck /bin/shellcheck /usr/local/bin/shellcheck diff --git a/README.md b/README.md index eafe21d..0f00653 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ It contains the necessary dependencies for running various linters and type chec - `reviewdog` - for code review - `hadolint` - for linting Dockerfile - `actionlint` - static checker for GitHub Actions workflow files +- `taplo` - TOML formatter and linter Alternative unix power tools: diff --git a/tests/specs.yaml b/tests/specs.yaml index 05d254d..a088ff7 100644 --- a/tests/specs.yaml +++ b/tests/specs.yaml @@ -49,6 +49,10 @@ commandTests: command: "actionlint" args: ["--version"] + - name: "taplo is installed in path" + command: "taplo" + args: ["--version"] + - name: "watchman is installed in path" command: "watchman" args: ["--version"]