Skip to content

Commit 1ee0daf

Browse files
committed
[CI] Add YAML files lint job
1 parent 2467cc7 commit 1ee0daf

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-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+
- "**/*.yml"
7+
- "**/*.yaml"
8+
push:
9+
paths:
10+
- "**/*.yml"
11+
- "**/*.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 .

.yamllint

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
extends: default
2+
rules:
3+
line-length:
4+
max: 120
5+
level: error

0 commit comments

Comments
 (0)