Skip to content

Commit 6ce90d2

Browse files
committed
ci: adding yamllint action
New yamllint workflow to verify the test-spec.yml is valid Signed-off-by: Sebastian Wezel <[email protected]>
1 parent ab19d87 commit 6ce90d2

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/lint-yaml.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
3+
name: Lint yaml files
4+
5+
on:
6+
pull_request:
7+
types: [push, opened, reopened, synchronized]
8+
paths:
9+
- '.github/test-spec.yml'
10+
11+
jobs:
12+
lintAllTheThings:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
16+
- name: yaml-lint
17+
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
18+
with:
19+
file_or_dir: .github/test-spec.yml
20+
config_file: .github/yamllint.yml

.github/yamllint.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
extends: default
2+
3+
ignore: |
4+
*.md
5+
CODEOWNERS
6+
*.ini
7+
8+
rules:
9+
colons: disable
10+
comments: disable
11+
comments-indentation: disable
12+
document-start: disable
13+
line-length: disable
14+
new-line-at-end-of-file: disable

0 commit comments

Comments
 (0)