2019-12-03 21:21:57 +05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: lint
|
2022-06-29 15:32:54 +05:00
|
|
|
image: code.pztrn.name/containers/mirror/golangci/golangci-lint:v1.46.2
|
2019-12-03 21:21:57 +05:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- golangci-lint run
|
|
|
|
|
|
|
|
- name: test
|
2022-06-29 15:32:54 +05:00
|
|
|
image: code.pztrn.name/containers/mirror/golang:1.18.3-alpine
|
2019-12-03 21:21:57 +05:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- go test -test.v ./...
|
|
|
|
|
|
|
|
- name: test-race
|
2022-06-29 15:32:54 +05:00
|
|
|
image: code.pztrn.name/containers/mirror/golang:1.18.3-bullseye
|
2019-12-03 21:21:57 +05:00
|
|
|
commands:
|
|
|
|
- go test -race -test.v ./...
|
|
|
|
|
|
|
|
- name: benchmark
|
2022-06-29 15:32:54 +05:00
|
|
|
image: code.pztrn.name/containers/mirror/golang:1.18.3-alpine
|
2019-12-03 21:21:57 +05:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
2019-12-22 02:07:08 +05:00
|
|
|
- go test -benchmem -run=^$ go.dev.pztrn.name/valiwork -bench .
|
2019-12-03 21:21:57 +05:00
|
|
|
|
|
|
|
- name: benchmark-race
|
2022-06-29 15:32:54 +05:00
|
|
|
image: code.pztrn.name/containers/mirror/golang:1.18.3-bullseye
|
2019-12-03 21:21:57 +05:00
|
|
|
commands:
|
2019-12-22 02:07:08 +05:00
|
|
|
- go test -benchmem -run=^$ go.dev.pztrn.name/valiwork -race -bench .
|