Skip to content

Commit

Permalink
ci(check): add taplo fmt test for TOMLs
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Jul 13, 2024
1 parent cd24737 commit 827e656
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion ci/actions-templates/centos-fmt-clippy-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 827e656

Please sign in to comment.