CI: add lint and test pipelines
This commit is contained in:
parent
d82867409f
commit
c955c8248b
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
pipeline:
|
||||||
|
lint:
|
||||||
|
image: docker.io/library/golang:1.19
|
||||||
|
commands:
|
||||||
|
- go vet $(go list ./... | grep -v /vendor/)
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
pipeline:
|
||||||
|
test:
|
||||||
|
image: docker.io/library/golang:1.19
|
||||||
|
commands:
|
||||||
|
- go test -race $(go list ./... | grep -v /vendor/)
|
||||||
|
depends_on:
|
||||||
|
- lint
|
Loading…
Reference in New Issue