-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (54 loc) · 1.53 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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=-