Skip to content

Commit 40e5be9

Browse files
committed
ci: add yaml linting
1 parent 57dfad0 commit 40e5be9

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/coding-standards.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
pull-requests: read
2020
steps:
2121
- name: 📦 Check out the codebase
22-
uses: actions/checkout@v4.1.4
22+
uses: actions/checkout@v4.1.5
2323

2424
- name: 🧐 Lint commits using "commitlint"
2525
uses: wagoid/commitlint-github-action@v6.0.1
@@ -29,6 +29,23 @@ jobs:
2929
failOnErrors: false
3030
helpURL: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint'
3131

32+
yaml-linting:
33+
timeout-minutes: 4
34+
runs-on: ubuntu-latest
35+
permissions:
36+
contents: read
37+
pull-requests: read
38+
steps:
39+
- name: 📦 Check out the codebase
40+
uses: actions/checkout@v4.1.5
41+
42+
- name: 🧐 Lint YAML files
43+
uses: ibiqlik/action-yamllint@v3.1.1
44+
with:
45+
config_file: .yamllint.yaml
46+
file_or_dir: '.'
47+
strict: true
48+
3249
markdown-linting:
3350
timeout-minutes: 4
3451
runs-on: ubuntu-latest
@@ -37,7 +54,7 @@ jobs:
3754
group: markdown-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
3855
steps:
3956
- name: 📦 Check out the codebase
40-
uses: actions/checkout@v4.1.4
57+
uses: actions/checkout@v4.1.5
4158

4259
- name: 🧐 Lint Markdown files
4360
uses: DavidAnson/markdownlint-cli2-action@v16.0.0

0 commit comments

Comments
 (0)