-
-
Notifications
You must be signed in to change notification settings - Fork 106
71 lines (60 loc) · 1.64 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Lint
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- master
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
helm-lint:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Update stackstorm-ha chart dependencies
run: |
set -x
helm dependency update
- name: Helm lint
run: |
helm lint
- name: Cache community
id: cache-community
uses: actions/cache@v3
with:
path: community
key: ${{ runner.os }}-community-${{ hashFiles('conf/**', 'templates/**', 'Chart.yaml', 'values.yaml') }}
- name: Helm template
if: steps.cache-community.outputs.cache-hit != 'true'
shell: bash
run: |
helm template --output-dir community .
k8s-lint:
runs-on: ubuntu-22.04
timeout-minutes: 10
needs: [helm-lint]
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install kubeconform-helm
run: |
helm plugin install https://github.com/jtyr/kubeconform-helm --version v0.1.17
- name: Update stackstorm-ha chart dependencies
run: |
set -x
helm dependency update
- name: Cache community
id: cache-community
uses: actions/cache@v3
with:
path: community
key: ${{ runner.os }}-community-${{ hashFiles('conf/**', 'templates/**', 'Chart.yaml', 'values.yaml') }}
- name: Kubernetes kubeconform-helm Lint
run: |
helm kubeconform .