mirror of
https://github.com/hamburghammer/gsave.git
synced 2025-01-09 16:27:41 +01:00
38 lines
614 B
YAML
38 lines
614 B
YAML
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: unit-test
|
||
|
image: golang
|
||
|
volumes:
|
||
|
- name: cache
|
||
|
path: /go
|
||
|
commands:
|
||
|
- go mod download
|
||
|
- go test -coverprofile=coverage.out -covermode=count ./...
|
||
|
- go tool cover -html=coverage.out -o coverage.html
|
||
|
- go tool cover -func=coverage.out | grep total
|
||
|
|
||
|
- name: race-test
|
||
|
image: golang
|
||
|
volumes:
|
||
|
- name: cache
|
||
|
path: /go
|
||
|
commands:
|
||
|
- go mod download
|
||
|
- go test -race -short ./...
|
||
|
|
||
|
- name: build
|
||
|
image: golang
|
||
|
volumes:
|
||
|
- name: cache
|
||
|
path: /go
|
||
|
commands:
|
||
|
- go mod download
|
||
|
- go build
|
||
|
|
||
|
volumes:
|
||
|
- name: cache
|
||
|
temp: {}
|