forked from StackStorm/stackstorm-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.42 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
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: 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 kubeval lint
uses: instrumenta/kubeval-action@master
with:
files: community