-
-
Notifications
You must be signed in to change notification settings - Fork 146
41 lines (34 loc) · 1.19 KB
/
ci-helm.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
name: Helm Lint and Test Charts
on: pull_request
jobs:
lint-helm-chart:
name: Lint Helm Chart
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.11.1
- uses: actions/setup-python@v5
with:
python-version: '3.9'
check-latest: true
- name: Set up chart-testing
uses: helm/[email protected]
- name: Get changed files in the docs folder
id: changed-files-specific
uses: tj-actions/changed-files@v44
with:
files: ./cmd/relayproxy/helm-charts/**
- name: Run chart-testing (lint)
working-directory: ./cmd/relayproxy/helm-charts/relay-proxy/
run: ct lint --chart-dirs . --charts .
- name: Create kind cluster
uses: helm/[email protected]
if: steps.changed-files-specific.outputs.any_changed == 'true'
- name: Run chart-testing (install)
working-directory: ./cmd/relayproxy/helm-charts/relay-proxy/
run: ct install --chart-dirs . --charts .
if: steps.changed-files-specific.outputs.any_changed == 'true'