-
Notifications
You must be signed in to change notification settings - Fork 50
37 lines (34 loc) · 1.12 KB
/
integration-tests.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
name: Integration Test
on: pull_request
env:
GOPROXY: https://proxy.golang.org
YQ_VERSION: v4.27.3
jobs:
test-harbor:
name: Test on Harbor
runs-on: ubuntu-latest
strategy:
matrix:
harbor: [v1, v2]
go: [1.20.1]
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Add local harbor host to /etc/hosts
run: echo "127.0.0.1 core.harbor.domain" | sudo tee -a /etc/hosts
- name: Setup Kind
uses: engineerd/[email protected]
with:
version: v0.15.0
skipClusterCreation: "true"
- name: Setup Helm
run: curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- name: Setup tools
run: sudo apt-get update && sudo apt-get install -y jq make
- name: Setup yq
run: wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64.tar.gz -O - | tar xz && sudo mv yq_linux_amd64 /usr/bin/yq
- name: Test
run: make integration-test-${{ matrix.harbor }}-ci