-
Notifications
You must be signed in to change notification settings - Fork 18
36 lines (34 loc) · 978 Bytes
/
pr-checks.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
name: PR Checks
on:
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Setup Kind
uses: engineerd/[email protected]
with:
version: "v0.11.1"
- name: Install Envtest
run: |
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
setup-envtest use
echo "KUBEBUILDER_ASSETS=$(setup-envtest use -p path)" >> $GITHUB_ENV
- name: Install goyacc
run: go install golang.org/x/tools/cmd/goyacc@latest
- name: Create the operator manifests
run: make operator-manifests
- name: Run tests
run: make test
- name: Run operator tests
env:
KUBEBUILDER_ASSETS: ${{ env.KUBEBUILDER_ASSETS }}
run: make operator-test
- name: Build operator docker image
run: make -C operator docker-build