Skip to content

Commit cca3cb8

Browse files
committed
[CI] Add YAML lint check
1 parent 8f268f7 commit cca3cb8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/yaml-lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: YAML Lint
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/**/*.yml"
7+
- ".github/**/*.yaml"
8+
push:
9+
paths:
10+
- ".github/**/*.yml"
11+
- ".github/**/*.yaml"
12+
workflow_dispatch:
13+
14+
jobs:
15+
yaml-lint:
16+
name: Validate YAML files
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
- name: Install yamllint
22+
run: python3 -m pip install yamllint
23+
- name: Run yamllint
24+
run: python3 -m yamllint .

0 commit comments

Comments
 (0)