Fix CI pipeline with proper build dependencies
This commit is contained in:
parent
68e69455e5
commit
d0b7aa142a
@ -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 ./...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user