-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (37 loc) · 1.1 KB
/
helm-template-test.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
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: 30 5 * * 1 #This cron is scheduled to run once in a week on Every Monday 11AM IST
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Install Helm
run: |
sudo apt-get update -y
sudo apt-get install wget tar
wget https://get.helm.sh/helm-v3.10.2-linux-amd64.tar.gz
tar -zxvf helm-v3.10.2-linux-amd64.tar.gz
sudo mv linux-amd64/helm /usr/local/bin/helm
- name: Add Helm Charts
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add influx https://helm.influxdata.com/
helm repo add grafana https://grafana.github.io/helm-charts
- name: Helm Template Test
run: |
pwd
ls
cd cloud/kubernetes/helm
helm dep up
cd ../tests/template
go test -v ./...