Skip to content

Add link to preconfigured online dev env #28

Add link to preconfigured online dev env

Add link to preconfigured online dev env #28

Workflow file for this run

name: Test example mini-programs against different versions of Kubernetes & client-go
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, synchronize, closed]
jobs:
prepare:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@v3
- id: make-list
name: Prepare mini-program list
run: |
echo "dirs=$(ls -d */ | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
outputs:
dirs: ${{ steps.make-list.outputs.dirs }}
client_go_0_23:
needs: prepare
strategy:
fail-fast: false
# A matrix can produce no more than 256 elements,
# so testing too many k8s versions is unfeasible.
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.22.15"
- "1.23.12"
- "1.24.6"
- "1.25.2"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.23.1"
client_go_0_24:
needs: prepare
strategy:
fail-fast: false
# A matrix can produce no more than 256 elements,
# so testing too many k8s versions is unfeasible.
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.22.15"
- "1.23.12"
- "1.24.6"
- "1.25.2"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.24.7"
client_go_0_25:
needs: prepare
strategy:
fail-fast: false
# A matrix can produce no more than 256 elements,
# so testing too many k8s versions is unfeasible.
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.22.15"
- "1.23.12"
- "1.24.6"
- "1.25.2"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.25.3"