Skip to content

Commit

Permalink
ci/debug: add GitHub matrix support
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Devulder <[email protected]>
  • Loading branch information
ldevulder committed Mar 19, 2024
1 parent 1055011 commit efe4751
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/cli-k3s-matrix.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit efe4751

Please sign in to comment.