feat: add first go tests
This commit is contained in:
parent
43364d735b
commit
f4773a9521
2 changed files with 46 additions and 1 deletions
|
|
@ -9,10 +9,18 @@ linter:
|
|||
script:
|
||||
- "golangci-lint run"
|
||||
|
||||
testing:
|
||||
stage: "testing"
|
||||
needs:
|
||||
- "linter"
|
||||
image: "cr.simoncor.net/siempie/go-build:latest"
|
||||
script:
|
||||
- "go test cmd/gogitlabber/*"
|
||||
|
||||
build:
|
||||
stage: "build"
|
||||
needs:
|
||||
- "linter"
|
||||
- "testing"
|
||||
image: "cr.simoncor.net/siempie/go-build:latest"
|
||||
script:
|
||||
- "GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o gogitlabber cmd/gogitlabber/*"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue