Skip to content

Commit 796a6d0

Browse files
committed
ci: add workflow to check TOML files
1 parent f65350a commit 796a6d0

2 files changed

Lines changed: 30 additions & 17 deletions

File tree

.github/workflows/check-toml.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
jobs:
15+
check:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v6
19+
with:
20+
persist-credentials: false
21+
- name: Install Tombi
22+
uses: tombi-toml/setup-tombi@v1
23+
- name: Install taplo-cli
24+
uses: taiki-e/install-action@v2
25+
with:
26+
tool: taplo-cli
27+
- name: Lint TOML files
28+
run: tombi lint --error-on-warnings
29+
- name: Format TOML files
30+
run: taplo fmt --check --diff

.github/workflows/code-quality.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -187,23 +187,6 @@ jobs:
187187
S=$(cspell ${CSPELL_CFG_OPTION} --no-summary --no-progress .) && printf "%s\n" "$S" || { printf "%s\n" "$S" ; printf "%s" "$S" | sed -E -n "s/^(.*):([0-9]+):([0-9]+) - Unknown word \(([^)]+)\).*$/::${fault_type} file=\1,line=\2,col=\3::${fault_type^^}: \`cspell\`: Unknown word '\4' (file:'\1', line:\2)/p" ; fault=true ; true ; }
188188
if [ -n "${{ steps.vars.outputs.FAIL_ON_FAULT }}" ] && [ -n "$fault" ]; then exit 1 ; fi
189189
190-
toml_format:
191-
name: Style/toml
192-
runs-on: ubuntu-latest
193-
steps:
194-
- name: Clone repository
195-
uses: actions/checkout@v6
196-
with:
197-
persist-credentials: false
198-
199-
- name: Install taplo-cli
200-
uses: taiki-e/install-action@v2
201-
with:
202-
tool: taplo-cli
203-
204-
- name: Check
205-
run: taplo fmt --check --diff
206-
207190
python:
208191
name: Style/Python
209192
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)