mirror of
https://github.com/hamburghammer/gstat.git
synced 2024-05-18 21:24:36 +02:00
966735a184
Add test coverage output. Add race detector step. Disable cgo for the build
32 lines
492 B
YAML
32 lines
492 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: unit-test
|
|
image: golang
|
|
volumes:
|
|
- name: cache
|
|
path: /go
|
|
commands:
|
|
- go test -coverprofile=coverage.out -covermode=count ./...
|
|
- go tool cover -func=coverage.out | grep total
|
|
|
|
- name: race-test
|
|
image: golang
|
|
volumes:
|
|
- name: cache
|
|
path: /go
|
|
commands:
|
|
- go test -race ./...
|
|
|
|
- name: build
|
|
image: golang
|
|
volumes:
|
|
- name: deps
|
|
path: /go
|
|
commands:
|
|
- CGO_ENABLED=0 go build
|
|
|
|
volumes:
|
|
- name: cache
|
|
temp: {} |