Skip to content

Commit 0ec12ac

Browse files
feat: add unified CI automation targets to Makefile
Introduced standard targets: lint, fmt, test, and verify to provide a consistent interface for local development and CI pipelines. These targets wrap existing project scripts and standard Go tools. Signed-off-by: vinayak sharma <vinayaks0111@gmail.com>
1 parent 76d9281 commit 0ec12ac

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
run: hack/verify-license.sh
3636
- name: lint
3737
run: hack/verify-staticcheck.sh
38+
- name: test
39+
run: make test
3840
build-frontend:
3941
runs-on: ubuntu-22.04
4042
steps:

Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,37 @@ install-ui-deps:
9696
.PHONY: install
9797
install: install-deps install-ui-deps
9898

99+
###################
100+
# Quality & Test #
101+
###################
102+
103+
# Run all verification targets (lint and test)
104+
.PHONY: verify
105+
verify: lint test
106+
107+
# Lint all components
108+
.PHONY: lint
109+
lint: lint-api
110+
111+
# Run Go staticcheck
112+
.PHONY: lint-api
113+
lint-api:
114+
hack/verify-staticcheck.sh
115+
116+
# Format all Go code
117+
.PHONY: fmt
118+
fmt:
119+
go fmt ./pkg/... ./cmd/...
120+
121+
# Run all unit tests
122+
.PHONY: test
123+
test: test-api
124+
125+
# Run Go unit tests
126+
.PHONY: test-api
127+
test-api:
128+
go test -v ./pkg/... ./cmd/...
129+
99130
###################
100131
# Development #
101132
###################

0 commit comments

Comments
 (0)