-
Notifications
You must be signed in to change notification settings - Fork 10
68 lines (60 loc) · 1.45 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
60
61
62
63
64
65
66
67
68
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
go:
- '1.21'
- '1.22'
- '1.23'
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Go build
run: make
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
k8s:
- v1.19.16
- v1.20.15
- v1.21.12
- v1.22.15
- v1.23.13
- v1.24.12
- v1.25.8
- v1.26.3
- v1.27.0
- v1.28.9
- v1.29.4
- v1.30.0
- v1.31.0
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up KIND cluster
uses: engineerd/[email protected]
with:
version: "v0.14.0"
image: "kindest/node:${{ matrix.k8s }}"
- name: Install kustomize
env:
GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }}
run: |
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/kustomize/v5.0.3/hack/install_kustomize.sh" | bash -s -- 4.5.7
sudo mv kustomize /usr/local/bin/kustomize
- name: E2E Test
run: |
make e2e-test