Skip to content

Commit 8c2ce32

Browse files
committed
ci: add workflow to check TOML files
1 parent f65350a commit 8c2ce32

2 files changed

Lines changed: 27 additions & 17 deletions

File tree

.github/workflows/check-toml.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check TOML files
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.toml"
7+
pull_request:
8+
paths:
9+
- "**.toml"
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
with:
17+
persist-credentials: false
18+
- name: Install Tombi
19+
uses: tombi-toml/setup-tombi@v1
20+
- name: Install taplo-cli
21+
uses: taiki-e/install-action@v2
22+
with:
23+
tool: taplo-cli
24+
- name: Lint TOML files
25+
run: tombi lint --error-on-warnings
26+
- name: Fomat TOML files
27+
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)