-
Notifications
You must be signed in to change notification settings - Fork 61
43 lines (41 loc) · 1.36 KB
/
e2e.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
name: E2E
on:
pull_request:
branches:
- master
jobs:
e2e-test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- kind-node-version: v1.21.2
crd-spec-version: v1
- kind-node-version: v1.18.19
crd-spec-version: v1beta1
steps:
- uses: actions/checkout@v2
- name: Determine Go version from go.mod
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: azure/setup-kubectl@v1
with:
version: ${{ matrix.kind-node-version }}
id: install
- name: Run e2e tests
run: make crd e2e-test -e CRD_SPEC_VERSION=${{ matrix.crd-spec-version }} -e KIND_NODE_VERSION=${{ matrix.kind-node-version }} -e KIND_KUBECTL_ARGS=--validate=false -e bats_args="--report-formatter junit"
- name: Publish Test Report
uses: mikepenz/action-junit-report@v2
if: success() || failure()
with:
report_paths: '**/e2e/report.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
check_name: e2e-report (${{ matrix.kind-node-version }}, ${{ matrix.crd-spec-version }})