Skip to content
Snippets Groups Projects
Commit fd8a116e authored by Steffen Schulze's avatar Steffen Schulze
Browse files

modified ci

parent 517f0985
No related branches found
No related tags found
No related merge requests found
stages:
- test
include:
- project: 'eclipse/xfsc/dev-ops/ci-templates'
file: 'golang-standard-ci.yaml'
ref: main
before_script:
- ln -s /builds /go/src/gitlab.eclipse.org
- cd /go/src/gitlab.eclipse.org/${CI_PROJECT_PATH}
#stages:
# - test
linters:
image: golangci/golangci-lint:latest
stage: test
script:
- go version
- golangci-lint --version
- golangci-lint run
#before_script:
# - ln -s /builds /go/src/gitlab.eclipse.org
# - cd /go/src/gitlab.eclipse.org/${CI_PROJECT_PATH}
unit tests:
image: golang:1.21.5
stage: test
script:
- go version
- go test $(go list ./... | grep -v /integration) -race -coverprofile=coverage.out
- go tool cover -func=coverage.out
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
#linters:
# image: golangci/golangci-lint:latest
# stage: test
# script:
# - go version
# - golangci-lint --version
# - golangci-lint run
govulncheck:
image: golang:1.21.5
stage: test
script:
- go version
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...
#unit tests:
# image: golang:1.21.5
# stage: test
# script:
# - go version
# - go test $(go list ./... | grep -v /integration) -race -coverprofile=coverage.out
# - go tool cover -func=coverage.out
# coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
#govulncheck:
# image: golang:1.21.5
# stage: test
# script:
# - go version
# - go install golang.org/x/vuln/cmd/govulncheck@latest
# - govulncheck ./...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment