Skip to content

Commit

Permalink
Merge branch 'rename-lint-to-codequality' into 'main'
Browse files Browse the repository at this point in the history
chore: rename lint to codequality

See merge request BobyMCbobs/go-http-server!27
  • Loading branch information
BobyMCbobs committed Dec 19, 2023
2 parents 9e7555d + 0dfc123 commit 6505b7c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
stages:
- conform
- test
- lint
- codequality
- build
- pages

Expand Down Expand Up @@ -33,7 +33,7 @@ variables:
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing' | tee -a /etc/apk/repositories

build-backend-smoketest:
stage: build
stage: codequality
image: $IMAGE_GOLANG_ALPINE
script:
- go build -o /dev/null .
Expand Down Expand Up @@ -67,7 +67,7 @@ build-container:
- cosign attest -y --recursive --predicate /tmp/sbom-spdx.json $IMAGE

spell_check:
stage: lint
stage: codequality
image:
name: $IMAGE_GOLANG_ALPINE
entrypoint: [""]
Expand All @@ -78,7 +78,7 @@ spell_check:
- misspell -error main.go cmd pkg docs k8s-manifests README*

lint_backend:
stage: lint
stage: codequality
image:
name: $IMAGE_GOLANG_ALPINE
entrypoint: [""]
Expand All @@ -89,25 +89,25 @@ lint_backend:
- golint -set_exit_status ./...

gotest:
stage: lint
stage: codequality
image: $IMAGE_GOLANG_ALPINE
script:
- go test -cover -v ./...

govet:
stage: lint
stage: codequality
image: $IMAGE_GOLANG_ALPINE
script:
- go vet -v ./...

gofmt:
stage: lint
stage: codequality
image: $IMAGE_GOLANG_ALPINE
script:
- find . -name "*.go" | grep -E -v vendor | xargs gofmt -s -l -d -w -s

goimports:
stage: lint
stage: codequality
image: $IMAGE_GOLANG_ALPINE
before_script:
- apk add --no-cache git
Expand All @@ -121,15 +121,15 @@ goimports:
fi
golangci-lint:
stage: lint
stage: codequality
image:
name: $IMAGE_GOLANGCI_LINT
entrypoint: [""]
script:
- golangci-lint run

govulncheck:
stage: lint
stage: codequality
image: $IMAGE_GOLANG_ALPINE
before_script:
- go install golang.org/x/vuln/cmd/govulncheck@latest
Expand Down

0 comments on commit 6505b7c

Please sign in to comment.