ci: add gh action for yaml linter

this commit adds gh action for yaml linter.

Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
subhamkrai
2021-03-11 08:23:18 +05:30
parent c0eacc89d5
commit b46e31dbee
59 changed files with 1983 additions and 1915 deletions
+30
View File
@@ -0,0 +1,30 @@
name: Yaml Lint
on:
pull_request:
paths:
- "**.yaml"
jobs:
yaml-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
config_data: |
extends: default
ignore: |
.mergify.yml
cluster/charts/
cluster/examples/kubernetes/ceph/csi/template
.github/workflows/
cluster/examples/kubernetes/ceph/crds.yaml
cluster/examples/kubernetes/ceph/pre-k8s-1.16/crds.yaml
tests/
rules:
line-length: disable
new-lines: disable
document-start: disable
comments: disable
truthy: disable