Skip to content

Commit acdc051

Browse files
authored
Merge pull request fluxcd#3 from weaveworks/gh-actions
Run linters with GitHub actions
2 parents acce91d + 282abf8 commit acdc051

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.github/main.workflow

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
workflow "Validate manifests" {
2+
on = "push"
3+
resolves = ["helm-lint"]
4+
}
5+
6+
action "yaml-lint" {
7+
uses = "stefanprodan/gh-actions/yamllint@master"
8+
args = ["-d '{extends: relaxed, rules: {line-length: {max: 120}}}' -f parsable ./releases/*"]
9+
}
10+
11+
action "kube-lint" {
12+
needs = ["yaml-lint"]
13+
uses = "stefanprodan/gh-actions/kubeval@master"
14+
args = "workloads/*"
15+
}
16+
17+
action "helm-lint" {
18+
needs = ["kube-lint"]
19+
uses = "stefanprodan/gh-actions/helm@master"
20+
args = ["lint charts/*"]
21+
}

releases/mongodb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ spec:
2323
securityContext:
2424
enabled: true
2525
fsGroup: 0
26-
runAsUser: 0
26+
runAsUser: 0

releases/redis-auth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ metadata:
77
name: redis-auth
88
namespace: demo
99
data:
10-
values.yaml: cGFzc3dvcmQ6IGFkbWlu
10+
values.yaml: cGFzc3dvcmQ6IGFkbWlu

0 commit comments

Comments
 (0)