Skip to content

Commit c4d8d45

Browse files
committed
feat(ci): adding compile warnings as errors
1 parent 0896e7f commit c4d8d45

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,13 @@ jobs:
102102
- name: Install dependencies
103103
run: go mod download
104104

105+
- name: Check for compile warnings
106+
run: |
107+
# Vet checks for suspicious constructs
108+
go vet ./...
109+
110+
# Build with warnings as errors
111+
go build -buildvcs=false ./...
112+
105113
- name: Run integration tests
106114
run: go test -v ./tests/...

0 commit comments

Comments
 (0)