-
Notifications
You must be signed in to change notification settings - Fork 53
49 lines (42 loc) · 1.78 KB
/
test-gh.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
name: test-gh
on: [push, pull_request]
jobs:
test-all:
name: Test GH
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v1
with:
go-version: "1.13"
- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
path: src/github.com/${{ github.repository }}
- name: Run Tests
run: |
set -e -x
export GOPATH=$(echo `pwd`/../../../../)
# Delete default installed helm
sudo rm `which helm`
mkdir -p /tmp/bin
export PATH=/tmp/bin:$PATH
# imgpkg
wget -O- https://github.com/k14s/imgpkg/releases/download/v0.3.0/imgpkg-linux-amd64 > /tmp/bin/imgpkg && \
echo "7ebd513bdb4d448764725202f0bfe41e052a594eddeb55e53681ebdf4c27d4dc /tmp/bin/imgpkg" | shasum -c - && \
chmod +x /tmp/bin/imgpkg
# helm 2
wget -O- https://get.helm.sh/helm-v2.17.0-linux-amd64.tar.gz > /tmp/helm2.tgz && \
echo "f3bec3c7c55f6a9eb9e6586b8c503f370af92fe987fcbf741f37707606d70296 /tmp/helm2.tgz" | shasum -c - && \
mkdir /tmp/helm2-unpacked && tar -C /tmp/helm2-unpacked -xzvf /tmp/helm2.tgz && \
mv /tmp/helm2-unpacked/linux-amd64/helm /tmp/bin/helm2
# helm 3
wget -O- https://get.helm.sh/helm-v3.3.1-linux-amd64.tar.gz > /tmp/helm3.tgz && \
echo "81e3974927b4f76e9f679d1f6d6b45748f8c84081a571741d48b2902d816e14c /tmp/helm3.tgz" | shasum -c - && \
mkdir /tmp/helm3-unpacked && tar -C /tmp/helm3-unpacked -xzvf /tmp/helm3.tgz && \
mv /tmp/helm3-unpacked/linux-amd64/helm /tmp/bin/helm3
export VENDIR_E2E_HELM2_BINARY=helm2
export VENDIR_E2E_HELM3_BINARY=helm3
./hack/build.sh
./hack/test-all.sh
./hack/build-binaries.sh