Skip to content

Commit 2a3c09f

Browse files
authored
Add YAML linter workflow for validating YAML schema (#6)
1 parent 0a8f102 commit 2a3c09f

7 files changed

Lines changed: 50 additions & 4 deletions

File tree

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
---
12
github: Cyclenerd

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
---
12
blank_issues_enabled: false
23
contact_links:
34
- name: Contact me on Mastodon
45
url: https://fosstodon.org/@cyclenerd
5-
about: Feel free to follow me on Mastodon and send me a message
6+
about: Feel free to follow me on Mastodon and send me a message

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ updates:
1313
interval: "weekly"
1414
day: "saturday"
1515
timezone: "Europe/Berlin"
16-
time: "05:00"
16+
time: "05:00"

.github/workflows/tools_codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ jobs:
9696
- name: Perform CodeQL Analysis
9797
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
9898
with:
99-
category: "/language:${{matrix.language}}"
99+
category: "/language:${{matrix.language}}"

.github/workflows/tools_sync-fork-branch-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
upstream_branch: master
4040
target_branch: master
4141
force: false
42-
tags: false
42+
tags: false
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: "Tools - Validate YAML Schema"
3+
4+
"on":
5+
pull_request:
6+
branches:
7+
- "customize"
8+
paths:
9+
- ".yamllint"
10+
- "**.yaml"
11+
- "**.yml"
12+
- "**.yml.example"
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
validate-yaml:
19+
name: YAML Linter
20+
runs-on: ubuntu-latest
21+
22+
permissions:
23+
contents: read
24+
25+
steps:
26+
- name: Checkout Repository
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
28+
29+
- name: Validate YAML files
30+
run: yamllint .

.yamllint

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
extends: default
3+
4+
yaml-files:
5+
- '*.yaml'
6+
- '*.yml'
7+
- '.yamllint'
8+
- '*.yml.example'
9+
10+
rules:
11+
empty-lines:
12+
level: warning
13+
line-length:
14+
max: 255

0 commit comments

Comments
 (0)