2019-10-15 21:20:49 +05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-06-18 00:33:09 +05:00
|
|
|
name: test-and-lint
|
2019-10-15 21:20:49 +05:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: lint
|
2022-06-29 16:35:24 +05:00
|
|
|
image: code.pztrn.name/containers/mirror/golangci/golangci-lint:v1.46.2
|
2019-10-15 21:20:49 +05:00
|
|
|
environment:
|
2020-06-18 00:33:09 +05:00
|
|
|
CGO_ENABLED: "0"
|
2019-10-15 21:20:49 +05:00
|
|
|
commands:
|
|
|
|
- golangci-lint run
|
|
|
|
|
2022-06-29 16:35:24 +05:00
|
|
|
- name: test-1.18
|
|
|
|
image: code.pztrn.name/containers/mirror/golang:1.18.3-alpine
|
2020-06-18 00:33:09 +05:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: "0"
|
|
|
|
commands:
|
|
|
|
- go test -cover -test.v .
|