Skip to content

Commit 76de216

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] new tool added: yamllint
1 parent 14f4eef commit 76de216

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/yamllint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: YAML lint
3+
4+
on: # yamllint disable-line rule:truthy
5+
push:
6+
branches: ["main", "develop", "feature/*"]
7+
pull_request:
8+
branches: ["main"]
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
16+
17+
- name: Install yamllint
18+
run: pip install yamllint
19+
20+
- name: Lint YAML files
21+
run: >
22+
yamllint --strict .
23+
&& echo '✔ Your code looks good.'

0 commit comments

Comments
 (0)