This repository was archived by the owner on May 11, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
95 lines (83 loc) · 2.64 KB
/
pr.yaml
File metadata and controls
95 lines (83 loc) · 2.64 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Lint and Test Charts
on: pull_request
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.11.1
- name: Set up Python
uses: actions/setup-python@v4
with:
# token: ${{ secrets.PYTHON_API_TOKEN }}
python-version: "3.10"
check-latest: true
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.4.0
with:
version: v3.5.1
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config ct.yaml)
if [[ -n "$changed" ]]; then
echo "$changed"
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
run: ct lint --config ct.yaml --debug
# lint-test-install:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# # https://kubernetes.io/releases/
# k8s:
# - v1.21.2
# - v1.22.15
# - v1.23.12
# - v1.24.6
# - v1.25.2
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Set up chart-testing
# uses: helm/chart-testing-action@v2.4.0
# with:
# version: v3.5.1
# - name: Run chart-testing (list-changed)
# id: list-changed
# run: |
# changed=$(ct list-changed --config ct.yaml)
# if [[ -n "$changed" ]]; then
# echo "$changed"
# echo "::set-output name=changed::true"
# fi
# - name: Create kind cluster
# if: steps.list-changed.outputs.changed == 'true'
# uses: helm/kind-action@v1.4.0
# with:
# kubectl_version: ${{ matrix.k8s }}
# verbosity: 10
# - name: Run chart-testing (install)
# run: ct install --config ct.yaml
lint-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run helm-docs
env:
HELM_DOCS_VERSION: "1.11.0"
run: |
curl --silent --show-error --fail --location --output /tmp/helm-docs.tar.gz https://github.com/norwoodj/helm-docs/releases/download/v"${HELM_DOCS_VERSION}"/helm-docs_"${HELM_DOCS_VERSION}"_Linux_x86_64.tar.gz
tar -xf /tmp/helm-docs.tar.gz helm-docs
./helm-docs
git diff --exit-code