ci: added linter stage
This commit is contained in:
parent
77d17d97b5
commit
ea71b8a52e
1 changed files with 9 additions and 0 deletions
|
|
@ -1,9 +1,18 @@
|
||||||
image: "golang:alpine"
|
image: "golang:alpine"
|
||||||
stages:
|
stages:
|
||||||
|
- "linter"
|
||||||
- "build"
|
- "build"
|
||||||
|
|
||||||
|
go-linter:
|
||||||
|
stage: "linter"
|
||||||
|
image: "golangci/golangci-lint:latest-alpine"
|
||||||
|
script:
|
||||||
|
- "golangci-lint run"
|
||||||
|
|
||||||
go-build:
|
go-build:
|
||||||
stage: "build"
|
stage: "build"
|
||||||
|
needs:
|
||||||
|
- "linter"
|
||||||
image: "cr.simoncor.net/siempie/go-build:latest"
|
image: "cr.simoncor.net/siempie/go-build:latest"
|
||||||
script:
|
script:
|
||||||
- "GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o gogitlabber cmd/gogitlabber/*"
|
- "GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o gogitlabber cmd/gogitlabber/*"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue