-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 975 Bytes
/
ci.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
name: Continuous Integration
on:
pull_request:
jobs:
build:
name: Build and Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22
- run: make all
- run: make test
integration:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.8.5"
- uses: azure/setup-kubectl@v3
with:
version: "v1.30.1"
- uses: engineerd/setup-kind@v0.5.0
with:
skipClusterCreation: true
- run: terraform init
name: Initialize Terraform
- run: |
make cluster-test
sleep 10
./tests/kubetest.sh
name: End to end tests
- run: make clean
name: Cleanup