Skip to content

Commit 9142dc0

Browse files
committed
Add GitHub Action for Yaml linting.
1 parent 3067b2c commit 9142dc0

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/linting.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v2
2121
- uses: pipeline-components/php-linter@master
22+
23+
lint-yaml:
24+
runs-on: ubuntu-20.04
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: "docker://pipelinecomponents/yamllint:latest"
28+
with:
29+
args: yamllint --config-file=build/.yamllint .

build/.yamllint

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
extends: default
3+
4+
ignore: |
5+
solid/vendor/
6+
7+
rules:
8+
brackets:
9+
max-spaces-inside: 1
10+
document-start: disable
11+
line-length:
12+
level: warning
13+
max: 120
14+
truthy: {allowed-values: ["true", "false", "on"]}

0 commit comments

Comments
 (0)