Skip to content

Commit 78fc26c

Browse files
committed
Add tools CI checks
1 parent 269a6f5 commit 78fc26c

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed

.github/workflows/openapi2crd.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

.github/workflows/scaffolder.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

tools/openapi2crd/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@ all: gen-mock fmt unit-test build
4141
clean: ## 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

tools/scaffolder/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,11 @@ generate-all: build
3939
generate-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

0 commit comments

Comments
 (0)