File tree 3 files changed +35
-18
lines changed
3 files changed +35
-18
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - main
9
+
10
+ jobs :
11
+ pre-commit :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : install pre-commit
16
+ run : pip install pre-commit
17
+ - name : pre-commit
18
+ run : pre-commit run --all-files --show-diff-on-failure
19
+
20
+ build :
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - uses : actions/checkout@v4
24
+ - name : Get kubebuilder
25
+ uses :
RyanSiu1995/[email protected]
26
+ with :
27
+ version : 4.1.1
28
+ - name : Setup Go
29
+ uses : actions/setup-go@v5
30
+ with :
31
+ go-version : ' 1.21.x'
32
+ - name : Display Go version
33
+ run : go version
34
+ - name : Run tests
35
+ run : go test ./pkg/... ./cmd/...
Load Diff This file was deleted.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments