-
Notifications
You must be signed in to change notification settings - Fork 60
65 lines (54 loc) · 1.58 KB
/
makefile.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Makefile CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version-file: go.mod
check-latest: true
- name: Download controller-gen
run: make controller-gen
- name: Download kustomize
run: make kustomize
- name: Build controller
run: make build
- name: Build bundle
run: make bundle IMG=quay.io/confidential-containers/operator:latest
codeql:
permissions:
actions: read
contents: read
security-events: write
needs:
- build
uses: "./.github/workflows/lib-codeql.yaml"
envtest:
name: Test APIs using envtest
runs-on: ubuntu-22.04
strategy:
matrix:
version:
- 1.29.x
- 1.30.x
- 1.31.x
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version-file: go.mod
check-latest: true
- name: Install envtest and k8s control plane
run: |
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
setup-envtest use ${{ matrix.version }}
- name: Run envtest
run: |
KUBEBUILDER_ASSETS=$(setup-envtest use -i -p path ${{ matrix.version }}) go test ./... -coverprofile cover.out