-
Notifications
You must be signed in to change notification settings - Fork 3
82 lines (72 loc) · 2.29 KB
/
e2e-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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: e2e tests
on:
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
env:
GO_VERSION: "1.18.4"
jobs:
setup:
name: setup
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
id: go
e2e:
name: e2e
needs: setup
runs-on: ubuntu-latest
timeout-minutes: 100
strategy:
fail-fast: false
matrix:
ipFamily: ["ipv4"]
backend: ["kpng", "kubeproxy"]
env:
JOB_NAME: "patu-e2e-${{ matrix.ipFamily }}-${{ matrix.backend }}"
IP_FAMILY: ${{ matrix.ipFamily }}
BACKEND: ${{ matrix.backend }}
steps:
- name: checkout
uses: actions/checkout@v2
- name: Setup ebpf dependencies
run: |
export GOBIN=$(go env GOPATH)/bin
export PATH=$PATH:$GOBIN
echo "PATH=$PATH" >> $GITHUB_ENV
go install github.com/cilium/ebpf/cmd/[email protected]
sudo apt-get install -y clang llvm libelf-dev libpcap-dev gcc-multilib build-essential linux-tools-common
- name: Setup cluster
run: make -C test IP_FAMILY=${{ matrix.ipFamily }} BACKEND=${{ matrix.backend }} install-kind
- name: Run Patu e2e
run: |
if [ $BACKEND == "kpng" ]; then
GINKGO_SKIP_TESTS="Internet"
fi
export "PATH=$HOME/work/patu/patu/test/temp/e2e/bin:$PATH"
make -C test IP_FAMILY=${{ matrix.ipFamily }} BACKEND=${{ matrix.backend }} GINKGO_SKIP_TESTS=$GINKGO_SKIP_TESTS KUBECONFIG=$HOME/.kube/config run-e2e
- name: Run Kubernetes Conformance e2e
run: |
export "PATH=$HOME/work/patu/patu/test/temp/e2e/bin:$PATH"
make -C test IP_FAMILY=${{ matrix.ipFamily }} BACKEND=${{ matrix.backend }} run-kube-conformance-e2e
- name: Export logs
if: always()
run: |
./test/scripts/e2e-export-logs.sh
- name: Upload Junit Reports
if: always()
uses: actions/upload-artifact@v2
with:
name: kind-junit-${{ env.JOB_NAME }}-${{ github.run_id }}
path: './test/scripts/temp/e2e/artifacts/reports/*.xml'
- name: Publish Test Report
uses: mikepenz/action-junit-report@v2
if: always()
with:
report_paths: './test/scripts/temp/e2e/artifacts/reports/*.xml'