Run linters with GitHub actions

- for custom resources use yamllint since kubeval won't work
- for Kubernetes standard definitions use kubeval
- for charts use helm lint
master
stefanprodan 2019-01-23 21:47:54 +02:00
parent acce91da56
commit 0777b92ce2
3 changed files with 23 additions and 2 deletions

21
.github/main.workflow vendored Normal file
View File

@ -0,0 +1,21 @@
workflow "Validate manifests" {
on = "push"
resolves = ["helm-lint"]
}
action "yaml-lint" {
uses = "stefanprodan/gh-actions/yamllint@master"
args = ["-d '{extends: relaxed, rules: {line-length: {max: 120}}}' -f parsable ./releases/*"]
}
action "kube-lint" {
needs = ["yaml-lint"]
uses = "stefanprodan/gh-actions/kubeval@master"
args = "workloads/*"
}
action "helm-lint" {
needs = ["yaml-lint"]
uses = "stefanprodan/gh-actions/helm@master"
args = ["lint charts/*"]
}