-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (50 loc) · 1.45 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: E2E
"on":
workflow_dispatch:
inputs:
kne_ref:
description: "openconfig/kne reference (tag, commit, branch)"
type: string
default: v0.1.9
required: true
kind_version:
description: "KinD version"
type: string
required: true
default: v0.17.0
env:
GOVER: 1.20.2
jobs:
e2e:
name: End-to-end test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test:
[
"TestSrlinuxReconciler_BareSrlinuxCR",
"TestSrlinuxReconciler_WithJSONStartupConfig",
"TestSrlinuxReconciler_WithCLIStartupConfig",
]
steps:
- name: Set env vars
run: |
echo "KNE_REF=${{ inputs.kne_ref }}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOVER }}
- name: Install kind
uses: engineerd/[email protected]
with:
name: srl-test # cluster name
version: ${{ inputs.kind_version }}
skipClusterCreation: true
- name: Prepare e2e environment
run: make prepare-e2e-env
- name: Run e2e tests
# this test ensures that srl-controller (built from referenced source) can be succesfully installed on a KNE cluster
# for a using specified versions of KNE/KinD
run: E2E_TEST_NAME=${{ matrix.test }} make test-e2e