Skip to content

Commit

Permalink
ci: Update taplo CI
Browse files Browse the repository at this point in the history
Switch from Action for taplo CI to manual install and running. Use only
`taplo format` and remove `taplo lint` check.
  • Loading branch information
aidan46 committed May 8, 2024
1 parent 9acd287 commit 5f27fb6
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/taplo.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Taplo formatting and linting
name: Taplo formatting

on:
push:
Expand All @@ -7,21 +7,17 @@ on:
paths: "**/Cargo.toml"

jobs:
lint:
name: Lint Cargo.toml
toml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: uncenter/[email protected]

- run: taplo lint --verbose
fmt:
name: Format Cargo.toml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: uncenter/[email protected]

- run: taplo format --check --verbose
- uses: dtolnay/rust-toolchain@stable
- name: Install taplo
run: cargo install taplo-cli --lock
- name: Run taplo
run: taplo format --check --diff
- name: Taplo failure info
if: failure()
run: |
echo 'TOML is not formatted correctly'
echo 'Please run `taplo format`'

0 comments on commit 5f27fb6

Please sign in to comment.