Skip to content

Commit 2965b6a

Browse files
committed
Add yamllint to prebuild workflow
Signed-off-by: David Son <[email protected]>
1 parent ee1b7c2 commit 2965b6a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/prebuild.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
lint:
5454
strategy:
5555
matrix:
56-
working_dir: ['', 'cmd']
56+
working_dir: ['.', 'cmd']
5757
runs-on: ubuntu-20.04
5858
steps:
5959
- uses: actions/checkout@v4
@@ -62,6 +62,13 @@ jobs:
6262
version: v${{ env.GOLANGCI_LINT_VERSION }}
6363
working-directory: ${{ matrix.working_dir }}
6464

65+
yamllint:
66+
name: yamllint-lint
67+
runs-on: ubuntu-20.04
68+
steps:
69+
- uses: actions/checkout@v4
70+
- run: yamllint .
71+
6572
shellcheck:
6673
runs-on: ubuntu-20.04
6774
container: koalaman/shellcheck-alpine:v0.10.0

.yamllint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
extends: default
2+
3+
rules:
4+
trailing-spaces:
5+
# issue templates intentionally have some whitespace
6+
ignore: .github/ISSUE_TEMPLATE/
7+
8+
document-start: disable # preference, can enable if desired
9+
comments: disable # doesn't like in-line comments like this
10+
line-length: disable # hard to enforce <80 chars for some cmds
11+
truthy:
12+
allowed-values: ['true', 'false', 'on']

0 commit comments

Comments
 (0)