Skip to content

Commit 8a764ba

Browse files
yamllint
1 parent c856e1d commit 8a764ba

File tree

4 files changed

+51
-7
lines changed

4 files changed

+51
-7
lines changed

.github/.yamllint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
extends: default
2+
3+
rules:
4+
# don't bother me with this rule
5+
# indentation: disable
6+
line-length: disable
7+
indentation: disable
8+
empty-lines: disable
9+
braces: disable
10+
colons: disable
11+
commas: disable
12+
hyphens: disable
13+
brackets: disable
14+
new-line-at-end-of-file: disable
15+
new-lines: disable
16+
yaml-files:
17+
- '*.yaml'
18+
- '*.yml'
19+
- '.yamllint'
20+
- '*.rul'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Validate YAML with Yamllint
2+
3+
on:
4+
push:
5+
6+
pull_request:
7+
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Step 1: Check out the repository
15+
- name: Check out code
16+
uses: actions/checkout@v3
17+
18+
# Step 2: Set up Python and install yamllint
19+
- name: Set up Python and Install Yamllint
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.x'
23+
24+
- name: Install Yamllint
25+
run: |
26+
pip3 install yamllint
27+
28+
# Step 3: Run yamllint on all YAML files
29+
- name: Lint YAML files
30+
run: |
31+
yamllint -c .github/.yamllint.yml .

yamllint.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)