-
Notifications
You must be signed in to change notification settings - Fork 29
42 lines (34 loc) · 1.07 KB
/
go.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
name: go
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build:
name: test
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
id: go
- name: Test
run: |
mkdir ./bin
HELM_VERSION=v3.11.1
HELM_LOCATION="https://get.helm.sh"
HELM_FILENAME="helm-${HELM_VERSION}-linux-amd64.tar.gz"
curl -LO ${HELM_LOCATION}/${HELM_FILENAME} && \
echo Extracting ${HELM_FILENAME}... && \
tar zxvf ${HELM_FILENAME} && mv linux-amd64/helm ./bin/ && \
rm ${HELM_FILENAME} && rm -r linux-amd64
curl -Ls "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
mv kustomize ./bin/
export PATH=$(pwd -P)/bin:$PATH
helm repo add stable https://charts.helm.sh/stable
CGO_ENABLED=0 go test ./...