Skip to content

E2E

E2E #17

Workflow file for this run

name: E2E
"on":
workflow_dispatch:
inputs:
kne_ref:
description: "openconfig/kne reference (tag, commit, branch)"
type: string
default: v0.3.1
required: true
kind_version:
description: "KinD version"
type: string
required: true
default: v0.24.0
env:
GOVER: 1.24.9
jobs:
e2e:
name: End-to-end test
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
test:
[
"TestSrlinuxReconciler_BareSrlinuxCR",
"TestSrlinuxReconciler_WithJSONStartupConfig",
"TestSrlinuxReconciler_WithCLIStartupConfig",
"TestSrlinuxReconciler_WithCustomInitImage",
]
steps:
- name: Set env vars
run: |
echo "KNE_REF=${{ inputs.kne_ref }}" >> $GITHUB_ENV
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
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 successfully installed on a KNE cluster
# for a using specified versions of KNE/KinD
run: E2E_TEST_NAME=${{ matrix.test }} make test-e2e