Skip to content

ci/debug: add GitHub matrix support #4

ci/debug: add GitHub matrix support

ci/debug: add GitHub matrix support #4

Workflow file for this run

# 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:
#k8s_upstream_version: [ "v1.26.10+k3s2", "v1.26.10+rke2r2" ]
#k8s_downstream_version: [ "v1.27.8+k3s2", "v1.27.8+rke2r2" ]
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 ]
include:
- ca_type: selfsigned
k8s_upstream_version: v1.26.10+k3s2
k8s_downstream_version: v1.27.8+k3s2
rancher_version: stable/latest
sequential : true
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 }}