feat: add first go tests

This commit is contained in:
Simon Cornet 2025-03-04 13:37:20 +01:00
commit f4773a9521
2 changed files with 46 additions and 1 deletions

View file

@ -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/*"