From efe47519ca411df9b951830ce6f58d6b04ed79d5 Mon Sep 17 00:00:00 2001 From: Loic Devulder Date: Mon, 18 Mar 2024 14:45:47 +0100 Subject: [PATCH] ci/debug: add GitHub matrix support Signed-off-by: Loic Devulder --- .github/workflows/cli-k3s-matrix.yaml | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/cli-k3s-matrix.yaml diff --git a/.github/workflows/cli-k3s-matrix.yaml b/.github/workflows/cli-k3s-matrix.yaml new file mode 100644 index 000000000..80ee1ea88 --- /dev/null +++ b/.github/workflows/cli-k3s-matrix.yaml @@ -0,0 +1,46 @@ +# This workflow calls the master E2E workflow with custom variables +name: cli-k3s-matrix + +on: + push: + workflow_dispatch: + inputs: + destroy_runner: + description: Destroy the auto-generated self-hosted runner + default: true + type: boolean +# schedule: +# - cron: '0 0 * * *' + +jobs: + cli: + strategy: + fail-fast: false + max-parallel: 4 + matrix: + #ca_type: [ "selfsigned" ,"private" ] + #k8s_upstream_version: [ "v1.26.10+k3s2", "v1.26.10+rke2r2" ] + #k8s_downstream_version: [ "v1.27.8+k3s2", "v1.27.8+rke2r2" ] + #rancher_version: [ "stable/latest", "latest/devel/2.7", "latest/devel/2.8", "latest/devel/2.9" ] + #sequential: [ true, false ] + #test_type: [ "cli" ] + ca_type: [ selfsigned, private ] + k8s_upstream_version: [ v1.26.10+k3s2 ] + k8s_downstream_version: [ v1.27.8+k3s2 ] + rancher_version: [ stable/latest, latest/devel/2.7, latest/devel/2.8, latest/devel/2.9 ] + sequential: [ false ] + test_type: [ cli ] + uses: ./.github/workflows/master_e2e.yaml + secrets: + credentials: ${{ secrets.GCP_CREDENTIALS }} + pat_token: ${{ secrets.SELF_HOSTED_RUNNER_PAT_TOKEN }} + with: + test_description: "${{ matrix.test_type }} - Sequential: ${{ matrix.sequential }} - k8sDownstream: ${{ matrix.k8s_downstream_version}} - k8sUpstream: ${{ matrix.k8s_upstream_version }} - Rancher: ${{ matrix.rancher_version }} - CA: ${{ matrix.ca_type }}" + ca_type: ${{ matrix.ca_type }} + cluster_name: cluster-test + #destroy_runner: ${{ github.event_name == 'schedule' && true || inputs.destroy_runner }} + k8s_downstream_version: ${{ matrix.k8s_downstream_version }} + k8s_upstream_version: ${{ matrix.k8s_upstream_version }} + rancher_version: ${{ matrix.rancher_version }} + sequential: ${{ matrix.sequential }} + test_type: ${{ matrix.test_type }}