mirror of
https://github.com/uutils/coreutils.git
synced 2026-10-16 02:48:27 -07:00
34 lines
691 B
YAML
34 lines
691 B
YAML
name: Check TOML files
|
|
|
|
# spell-checker:ignore (people) taiki-e
|
|
# spell-checker:ignore (misc) taplo tombi
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "**.toml"
|
|
pull_request:
|
|
paths:
|
|
- "**.toml"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install Tombi
|
|
uses: tombi-toml/setup-tombi@v1
|
|
- name: Install taplo-cli
|
|
uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: taplo-cli
|
|
- name: Lint TOML files
|
|
run: tombi lint --error-on-warnings
|
|
- name: Format TOML files
|
|
run: taplo fmt --check --diff
|