Skip to content

Commit

Permalink
add cargo toml fmt to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Mar 2, 2024
1 parent 049e7e8 commit 3ca46f4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/check-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ jobs:
restore-keys: ${{ runner.os }}-cargo-lint-
- run: cargo clippy --workspace --all-features --all-targets ${{ env.CARGO_ARGS }} -- -D warnings

cargo-toml-fmt:
runs-on: ubuntu-latest
container: "tamasfe/taplo:0.7.0-alpine"
steps:
- uses: actions/checkout@v3

- name: Run Taplo fmt
run: taplo fmt --check

- name: Fail-fast; cancel other jobs
if: failure()
uses: andymckay/cancel-action@0.2

test:
if: ${{ !startsWith(github.head_ref, 'release/') }}
name: Test
Expand Down

0 comments on commit 3ca46f4

Please sign in to comment.