diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f8ceb07fb1..3a8d7911dd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1392,7 +1392,15 @@ jobs: shellcheck -x -s dash -- rustup-init.sh git ls-files -- '*.sh' | xargs shellcheck -x -s dash git ls-files -- '*.bash' | xargs shellcheck -x -s bash - - name: Run formatting checks + - name: Install taplo + uses: taiki-e/install-action@v2 + with: + tool: taplo-cli@0.8 + - name: Run TOML formatting checks + run: | + taplo fmt + git diff --exit-code + - name: Run Rust formatting checks run: | cargo fmt --all --check - name: Run cargo check and clippy diff --git a/ci/actions-templates/centos-fmt-clippy-template.yaml b/ci/actions-templates/centos-fmt-clippy-template.yaml index e58c7dba2a..635edf2ac2 100644 --- a/ci/actions-templates/centos-fmt-clippy-template.yaml +++ b/ci/actions-templates/centos-fmt-clippy-template.yaml @@ -65,7 +65,15 @@ jobs: # skip-all shellcheck -x -s dash -- rustup-init.sh git ls-files -- '*.sh' | xargs shellcheck -x -s dash git ls-files -- '*.bash' | xargs shellcheck -x -s bash - - name: Run formatting checks + - name: Install taplo + uses: taiki-e/install-action@v2 + with: + tool: taplo-cli@0.8 + - name: Run TOML formatting checks + run: | + taplo fmt + git diff --exit-code + - name: Run Rust formatting checks run: | cargo fmt --all --check - name: Run cargo check and clippy