Fix CI pipeline with proper build dependencies

This commit is contained in:
Valentin Popov 2025-05-05 23:38:17 +00:00
parent 68e69455e5
commit d0b7aa142a
No known key found for this signature in database
GPG Key ID: AE3CE523DAAA8401

View File

@ -1,18 +1,14 @@
image: golang:1.24-alpine
before_script:
- apk add --no-cache gcc musl-dev
- go mod download
stages: stages:
- vet
- test - test
variables:
CGO_ENABLED: "1"
vet:
stage: vet
image: golang:1.24-alpine
script:
- go vet ./...
test: test:
stage: test stage: test
image: golang:1.24-alpine
script: script:
- go test -race -cover ./... - go vet ./...
- go test -race -covermode=atomic ./...