-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (49 loc) · 1.58 KB
/
api_ops_tests.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
# See https://github.com/helm/chart-testing-action
name: Lint and Test Charts
on:
push:
branches:
#- main
- local_api_infra
pull_request:
workflow_dispatch:
jobs:
helm-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install chart-testing
uses: helm/[email protected]
- name: Run chart-testing (lint)
run: ct lint --charts ./api/helm-chart --debug
helmsman-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: azure/[email protected]
- uses: azure/setup-kubectl@v3
- name: Start minikube - if this breaks on local do a 'minikube delete'
id: minikube
uses: medyagh/setup-minikube@master
with:
cpus: 2
memory: 2G # 1.9G recommended minimum
start-args: '--force'
- name: Start everything
run: |
curl -L https://github.com/Praqma/helmsman/releases/download/v3.17.0/helmsman_3.17.0_linux_amd64.tar.gz | tar zx
mv helmsman /usr/local/bin/helmsman
helmsman --apply -f ./api/local/helmsman_local.yml -e ./api/local/.env_template
- run: kubectl get pods --namespace=api
- name: Wait for api to start and health-check
run: kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=api --timeout=1000s --namespace=api
- name: Cleanup
run: |
minikube delete
if: ${{ always() }}