-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (48 loc) · 1.34 KB
/
go.yaml
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
name: Go
on:
- push
env:
golang-version: "1.18"
kind-version: "v0.14.0"
jobs:
config-generation:
runs-on: ubuntu-latest
name: Default config generation check
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.golang-version }}
- run: cd installer && make generate && git diff --exit-code
e2e-tests:
name: E2E tests
runs-on: ubuntu-latest
strategy:
matrix:
kind-image:
- "kindest/node:v1.24.0"
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-go@v2
with:
go-version: ${{ env.golang-version }}
- name: Start KinD
uses: engineerd/[email protected]
with:
version: ${{ env.kind-version }}
image: ${{ matrix.kind-image }}
wait: 300s
config: .github/workflows/kind/config.yml
- name: Wait for cluster to finish bootstraping
run: kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s
- name: Create monitoring-satellite
run: |
make generate
./hack/deploy-crds.sh
cd installer && make apply-satellite
- name: Run tests
run: |
export KUBECONFIG="${HOME}/.kube/config"
make test-e2e