-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (40 loc) · 1.16 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
# 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:
ops-lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v3
# as of 2022/12 the set-output still not fixed in this action
# https://github.com/Azure/setup-helm/issues/103
with:
version: v3.12.1
- name: Install chart-testing
uses: helm/[email protected]
- name: Run chart-testing (lint)
run: ct lint --charts ./api/local/api --debug
- 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: Run chart-testing (install)
run: ct install --charts ./api/local/api
- name: Cleanup
run: |
minikube delete
if: ${{ always() }}