Skip to content

Commit 97fb372

Browse files
ci: Add yamllint workflow for YAML linting
1 parent 6f18d27 commit 97fb372

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/yamllint.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: yamllint
3+
4+
run-name: Yamllint
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- "main"
10+
paths:
11+
- "**/*.yaml"
12+
- "**/*.yml"
13+
14+
concurrency:
15+
group: ${{ github.ref }}-${{ github.workflow }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
skip_duplicate_actions:
20+
name: Skip Duplicate Actions
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: fkirc/skip-duplicate-actions@master
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
cancel_others: true
27+
concurrent_skipping: never
28+
29+
yamllint:
30+
name: Yamllint
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0
37+
38+
- name: Call Dagger Function
39+
uses: dagger/dagger-for-github@v6
40+
with:
41+
args: check --source=. stdout
42+
module: github.com/softwaredevelop/daggerverse/yamllint@main
43+
verb: call
44+
version: "latest"

0 commit comments

Comments
 (0)