Skip to content

Commit f235ae5

Browse files
committed
Add yamlling workflow
Signed-off-by: smoshiur1237 <[email protected]>
1 parent de0b2d0 commit f235ae5

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/yamllint.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: yamllint
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
15+
16+
- name: yaml-lint
17+
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
18+
with:
19+
config_file: .yamllint.yaml

.yamllint.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
yaml-files:
2+
- '*.yaml'
3+
- '*.yml'
4+
- '.yamllint'
5+
6+
rules:
7+
trailing-spaces: enable
8+
key-duplicates: enable
9+
truthy:
10+
allowed-values: ['true', 'false', 'yes', 'no', 'on']

0 commit comments

Comments
 (0)