This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
57 lines (46 loc) · 1.71 KB
/
helm-tests.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
51
52
53
54
55
56
57
name: Test helm.md
on:
push:
branches:
- main
pull_request:
paths:
- 'docs/setting-up/server/helm.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install pandoc
run: |
wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb
sudo apt-get install -y ./pandoc-2.18-1-amd64.deb
- name: Copy test template
run: cp _resources/bin/doc_test_template.sh ./docs_test_helm.sh
- name: Get CodeBlocks and push them to test template
run: pandoc -i docs/setting-up/server/helm.md --lua-filter _resources/bin/CodeBlock.lua -t html -o /dev/null >> docs_test_helm.sh
- name: Start k8s cluster
run: minikube start
- name: Setup storage driver for snapshots
run: |
minikube addons disable storage-provisioner
kubectl delete storageclass standard
minikube addons enable csi-hostpath-driver
minikube addons enable volumesnapshots
kubectl patch storageclass csi-hostpath-sc -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
- name: Run helm tests
run: ./docs_test_helm.sh
- name: Get debug
if: ${{ failure() }}
run: |
cat ./docs_test_helm.sh
pandoc --version
helm version
kubectl get pods
kubectl describe pod --selector=app.kubernetes.io/name=pmm || true
kubectl get events --sort-by=lastTimestamp
kubectl logs --all-containers --timestamps --selector=app.kubernetes.io/name=pmm || true