| 1 |
name: Check TOML files |
| 2 |
|
| 3 |
# spell-checker:ignore (people) taiki-e |
| 4 |
# spell-checker:ignore (misc) taplo tombi |
| 5 |
|
| 6 |
on: |
| 7 |
push: |
| 8 |
paths: |
| 9 |
- "**.toml" |
| 10 |
pull_request: |
| 11 |
paths: |
| 12 |
- "**.toml" |
| 13 |
|
| 14 |
permissions: |
| 15 |
contents: read |
| 16 |
|
| 17 |
jobs: |
| 18 |
check: |
| 19 |
runs-on: ubuntu-latest |
| 20 |
steps: |
| 21 |
- uses: actions/[email protected] |
| 22 |
with: |
| 23 |
persist-credentials: false |
| 24 |
- name: Install Tombi |
| 25 |
uses: tombi-toml/setup-tombi@v1 |
| 26 |
- name: Install taplo-cli |
| 27 |
uses: taiki-e/install-action@v2 |
| 28 |
with: |
| 29 |
tool: taplo-cli |
| 30 |
- name: Lint TOML files |
| 31 |
run: tombi lint --error-on-warnings |
| 32 |
- name: Format TOML files |
| 33 |
run: taplo fmt --check --diff |