feat: move linting to component
This commit is contained in:
parent
d5f15cbfa6
commit
b4cacd1e64
1 changed files with 8 additions and 7 deletions
|
|
@ -1,14 +1,8 @@
|
||||||
stages:
|
stages:
|
||||||
- "linter"
|
- "linting"
|
||||||
- "testing"
|
- "testing"
|
||||||
- "releasing"
|
- "releasing"
|
||||||
|
|
||||||
linter:
|
|
||||||
stage: "linter"
|
|
||||||
image: "golangci/golangci-lint:latest-alpine"
|
|
||||||
script:
|
|
||||||
- "golangci-lint run"
|
|
||||||
|
|
||||||
testing:
|
testing:
|
||||||
stage: "testing"
|
stage: "testing"
|
||||||
needs:
|
needs:
|
||||||
|
|
@ -30,3 +24,10 @@ releasing:
|
||||||
GITLAB_TOKEN: '$GORELEASER_GITLAB_TOKEN'
|
GITLAB_TOKEN: '$GORELEASER_GITLAB_TOKEN'
|
||||||
script:
|
script:
|
||||||
- "goreleaser release --clean"
|
- "goreleaser release --clean"
|
||||||
|
|
||||||
|
|
||||||
|
# include jobs
|
||||||
|
include:
|
||||||
|
|
||||||
|
# linting
|
||||||
|
- component: "$CI_SERVER_FQDN/components/golanglint/golanglint@v1.0.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue