forked from clusterlink-net/clusterlink
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 897 Bytes
/
pr-e2e-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
name: PR check - e2e tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
e2e-connectivity-test:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.20']
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Install kind
uses: helm/kind-action@v1.9.0
with:
install_only: true
- name: Run build
run: make build
- name: Build docker images
run: make docker-build
- name: Run e2e k8s test on a kind cluster
run: CICD=1 ${{ runner.debug == '1' && 'DEBUG=1' || '' }} make tests-e2e-k8s
- name: upload e2e k8s test logs
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-e2e-k8s
path: /tmp/clusterlink-k8s-tests