add test dependencies, separate test ci

This commit is contained in:
2025-11-03 10:43:06 +01:00
parent 53d69b5278
commit 9cb5a4b800

View File

@@ -15,7 +15,6 @@ steps:
commands:
- go get
- go build
- go test
linter:
when:
@@ -25,3 +24,13 @@ steps:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0
- golangci-lint --version
- golangci-lint run ./...
depends_on: [build]
test:
when:
event: [push]
image: golang:${goversion}
commands:
- go get
- go test -v -cover
depends_on: [build,linter]