-
Notifications
You must be signed in to change notification settings - Fork 533
50 lines (42 loc) · 1.35 KB
/
helm-ci.yml
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
name: helm-ci
on: pull_request
jobs:
call-lint:
uses: grafana/helm-charts/.github/workflows/linter.yml@main
with:
filter_regex_include: .*operations/helm/.*
call-lint-test:
uses: grafana/helm-charts/.github/workflows/lint-test.yaml@main
with:
ct_configfile: operations/helm/ct.yaml
ct_check_version_increment: false
helm_version: v3.8.2
kind_kubectl_version: v1.20.8
kind_node_image: kindest/node:v1.20.15
prepare:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Get build image from Makefile
id: build_image_step
run: echo "build_image=$(make print-build-image)" >> "$GITHUB_OUTPUT"
outputs:
build_image: ${{ steps.build_image_step.outputs.build_image }}
conftest:
runs-on: ubuntu-latest
needs:
- prepare
container:
image: ${{ needs.prepare.outputs.build_image }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Run Git Config
run: git config --global --add safe.directory '*'
- name: Lint Rego Policies
run: make BUILD_IN_CONTAINER=false check-conftest-fmt
- name: Run conftest policy unit tests
env:
TEMP_DIR: ${{ runner.temp }}/conftest
run: make BUILD_IN_CONTAINER=false conftest-verify