-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (48 loc) · 1.19 KB
/
pull_request.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
49
50
name: pull_request
on:
push:
branches:
- 'master'
pull_request:
jobs:
gen:
name: Code Gen
runs-on: ubuntu-22.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
id: go
- name: Generate Code
run: |
./ci/check-code-and-docs-gen.sh
test:
name: Tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go 1.22
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
# Required for codegen tests
- name: Install kind
uses: helm/[email protected]
with:
install_only: true
version: v0.24.0
- name: Setup Kind
run: |
./ci/setup-kind.sh skv2-test-remote
- uses: azure/setup-kubectl@v3
with:
version: 'v1.31.0'
- name: Install deps for codegen
run: |
make install-tools
- name: Run tests
run: |
REMOTE_CLUSTER_CONTEXT=kind-skv2-test-remote PATH="$(pwd)/_output/.bin:$PATH" go test ./...