u #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
pull_request: | |
env: | |
KIND_VERSION: v0.23.0 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install | |
run: | | |
wget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bash | |
- uses: actions/checkout@v4 | |
- name: build | |
run: | | |
kcl run | |
test-kind-create: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 6 | |
fail-fast: false | |
matrix: | |
image: | |
- kindest/node:v1.30.2 | |
- kindest/node:v1.29.0 | |
- kindest/node:v1.28.0 | |
cpcount: | |
- 1 | |
- 3 | |
workercount: | |
- 1 | |
- 3 | |
steps: | |
- name: Install | |
run: | | |
wget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bash | |
- name: install kind | |
run: | | |
wget https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | |
tar xvfz linux-amd64.tgz | |
chmod +x kind | |
mv kind /usr/local/bin/ | |
rm -f linux-amd64.tgz | |
rm -f e2e-k8s.sh | |
#wget https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64 | |
#chmod +x kind-linux-amd64 | |
#mv kind-linux-amd64 /usr/local/bin/kind | |
- uses: actions/checkout@v4 | |
- name: build | |
run: | | |
#kcl run -D image=${{ matrix.image }} -D cpcount=${{ matrix.cpcount }} -D workercount=${{ matrix.workercount }} | |
kcl mod update | |
kcl run -D image=${{ matrix.image }} -D cpcount=${{ matrix.cpcount }} -D workercount=${{ matrix.workercount }} | kind create cluster -v5 --wait 4m --retain --config=- |