Skip to content

Commit 05eb21c

Browse files
committed
Add yamlling workflow
Signed-off-by: smoshiur1237 <moshiur.rahman@est.tech>
1 parent 39cf88b commit 05eb21c

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/yamllint.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
- name: Install yamllint
15+
run: sudo apt-get update && sudo apt-get install -y yamllint
16+
17+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
18+
19+
- name: yaml-lint
20+
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
21+
with:
22+
config_file: .yamllint.yaml

.yamllint.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
yaml-files:
2+
- '*.yaml'
3+
- '*.yml'
4+
- '.yamllint'
5+
6+
rules:
7+
trailing-spaces: enable
8+
key-duplicates: enable
9+
indentation:
10+
spaces: 2
11+
indent-sequences: false # Enforce k8s-style indentation
12+
check-multi-line-strings: false
13+
truthy:
14+
allowed-values: [ 'true', 'false', 'yes', 'no', 'on' ]

0 commit comments

Comments
 (0)