-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (38 loc) · 910 Bytes
/
tests.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
name: Tests
on:
# run it on push to the default repository branch
push:
branches:
- main
- dev
tags:
- '*'
jobs:
tests:
name: Setup KinD cluster and run tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install kubectl
uses: azure/setup-kubectl@v1
with:
version: 'latest'
- name: Set up KinD
uses: helm/[email protected]
with:
version: v0.23.0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.22'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make
- name: Setup the tls certs
run: ./config/webhook/gen-certs-serv-cli.sh
- name: Run tests
run: make test