feat: Add taplo CI #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Taplo formatting | |
on: | |
push: | |
paths: "**/*.toml" | |
pull_request: | |
paths: "**/*.toml" | |
jobs: | |
toml: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: List cargo version | |
run: cargo --version | |
- name: Install taplo | |
run: cargo install taplo-cli --locked | |
- name: List taplo version | |
run: taplo --version | |
- 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`' |