File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,20 @@ docker run --rm -v $(pwd):/app -w /app golang:1.24 go test -v -race ./...
3535
3636Note: Race detector requires CGO, which is not available in alpine images. The Dockerfile test stage uses the full golang image for this reason.
3737
38+ ## CI Checks
39+
40+ Run the full CI suite locally before committing:
41+
42+ ``` bash
43+ # Run all CI checks (format, vet, test with race detector)
44+ docker run --rm -v $( pwd) :/app -w /app golang:1.24 sh -c " go fmt ./... && go vet ./... && go test -v -race ./..."
45+ ```
46+
47+ The CI pipeline runs:
48+ 1 . ** Format check** : ` go fmt ./... ` followed by ` git diff --exit-code ` (fails if formatting changes files)
49+ 2 . ** Vet** : ` go vet ./... `
50+ 3 . ** Test** : ` go test -v -race ./... `
51+
3852## Code Style
3953
4054- Run ` go fmt ` on all code before committing
You can’t perform that action at this time.
0 commit comments