Skip to content

ci/poc: add GitHub matrix support #5

ci/poc: add GitHub matrix support

ci/poc: add GitHub matrix support #5

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:
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
rancher_version: stable/latest
sequential : true
- ca_type: private
cluster_type: hardened
rancher_version: stable/latest
reset: true
uses: ./.github/workflows/master_e2e.yaml
secrets:
credentials: ${{ secrets.GCP_CREDENTIALS }}
pat_token: ${{ secrets.SELF_HOSTED_RUNNER_PAT_TOKEN }}
with:
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 }}