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 12, 2024
1 parent f90ac8f commit c62ad06
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
- 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
- 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 c62ad06

Please sign in to comment.