-
Notifications
You must be signed in to change notification settings - Fork 52
54 lines (47 loc) · 1.7 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
50
51
52
53
54
name: test-gh
on:
push:
branches:
- develop
pull_request:
types: [opened, reopened, synchronize]
jobs:
test-all:
name: Test GH
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
path: src/github.com/${{ github.repository }}
fetch-depth: 0
- name: Run Tests
env:
VENDIR_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e -x
export GOPATH=$(pwd)
# Delete default installed helm
sudo rm `which helm`
mkdir -p /tmp/bin
export PATH=/tmp/bin:$PATH
# 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.8.0-linux-amd64.tar.gz > /tmp/helm3.tgz && \
echo "8408c91e846c5b9ba15eb6b1a5a79fc22dd4d33ac6ea63388e5698d1b2320c8b /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
cd "src/github.com/${{ github.repository }}"
export VENDIR_E2E_HELM2_BINARY=helm2
export VENDIR_E2E_HELM3_BINARY=helm3
./hack/build.sh
./hack/test-all.sh
./hack/build-binaries.sh