File tree Expand file tree Collapse file tree 4 files changed +66
-2
lines changed
Expand file tree Collapse file tree 4 files changed +66
-2
lines changed Original file line number Diff line number Diff line change 1+ name : OpenAPI2CRD tool CI
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ paths :
7+ - ' tools/openapi2crd/**'
8+ pull_request :
9+ branches : [ "main" ]
10+ paths :
11+ - ' tools/openapi2crd/**'
12+
13+ jobs :
14+
15+ githubjobs :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v5
19+
20+ - name : Set up Go
21+ uses : actions/setup-go@v6
22+ with :
23+ go-version : ' 1.25'
24+
25+ - name : CI checks
26+ working-directory : ./tools/openapi2crd
27+ run : make ci
Original file line number Diff line number Diff line change 1+ name : Scaffolder tool CI
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ paths :
7+ - ' tools/scaffolder/**'
8+ pull_request :
9+ branches : [ "main" ]
10+ paths :
11+ - ' tools/scaffolder/**'
12+
13+ jobs :
14+
15+ githubjobs :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v5
19+
20+ - name : Set up Go
21+ uses : actions/setup-go@v6
22+ with :
23+ go-version : ' 1.25'
24+
25+ - name : CI checks
26+ working-directory : ./tools/scaffolder
27+ run : make ci
Original file line number Diff line number Diff line change @@ -41,4 +41,7 @@ all: gen-mock fmt unit-test build
4141clean : # # Clean up built artifacts
4242 @echo " ==> Cleaning..."
4343 @rm -f $(BINARY_PATH )
44- @rm -f $(CRD_FILE )
44+ @rm -f $(CRD_FILE )
45+
46+ .PHONY : ci
47+ ci : all # # Standard CI tests
Original file line number Diff line number Diff line change @@ -39,4 +39,11 @@ generate-all: build
3939generate-all-override :
4040 $(BINARY_PATH ) --input $(CRD_FILE ) --all --override \
4141 --indexer-out $(INDEXER_OUT ) \
42- --controller-out $(CONTROLLER_OUT ) \
42+ --controller-out $(CONTROLLER_OUT )
43+
44+ .PHONY : unit-test
45+ unit-test :
46+ go test -race -cover ./...
47+
48+ .PHONY : ci
49+ ci : build unit-test # # Standard CI tests
You can’t perform that action at this time.
0 commit comments