mirror of
https://github.com/hamburghammer/rcon.git
synced 2024-12-23 00:07:41 +01:00
49 lines
648 B
YAML
49 lines
648 B
YAML
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: tests
|
||
|
|
||
|
steps:
|
||
|
- name: unit
|
||
|
image: golang
|
||
|
volumes:
|
||
|
- name: cache
|
||
|
path: /go
|
||
|
commands:
|
||
|
- go mod download
|
||
|
- go test -coverprofile=coverage.out -covermode=count ./...
|
||
|
- go tool cover -func=coverage.out | grep total
|
||
|
|
||
|
- name: race
|
||
|
image: golang
|
||
|
volumes:
|
||
|
- name: cache
|
||
|
path: /go
|
||
|
commands:
|
||
|
- go mod download
|
||
|
- go test -race ./...
|
||
|
|
||
|
volumes:
|
||
|
- name: cache
|
||
|
temp: {}
|
||
|
|
||
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: builds
|
||
|
|
||
|
depends_on:
|
||
|
- tests
|
||
|
|
||
|
steps:
|
||
|
- name: go
|
||
|
image: golang
|
||
|
volumes:
|
||
|
- name: cache
|
||
|
path: /go
|
||
|
commands:
|
||
|
- go mod download
|
||
|
- go build
|
||
|
|
||
|
volumes:
|
||
|
- name: cache
|
||
|
temp: {}
|