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

modified ci

parent 517f0985
Branches
No related tags found
No related merge requests found
stages: include:
- test - project: 'eclipse/xfsc/dev-ops/ci-templates'
file: 'golang-standard-ci.yaml'
ref: main
before_script: #stages:
- ln -s /builds /go/src/gitlab.eclipse.org # - test
- cd /go/src/gitlab.eclipse.org/${CI_PROJECT_PATH}
linters: #before_script:
image: golangci/golangci-lint:latest # - ln -s /builds /go/src/gitlab.eclipse.org
stage: test # - cd /go/src/gitlab.eclipse.org/${CI_PROJECT_PATH}
script:
- go version
- golangci-lint --version
- golangci-lint run
unit tests: #linters:
image: golang:1.21.5 # image: golangci/golangci-lint:latest
stage: test # stage: test
script: # script:
- go version # - go version
- go test $(go list ./... | grep -v /integration) -race -coverprofile=coverage.out # - golangci-lint --version
- go tool cover -func=coverage.out # - golangci-lint run
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
govulncheck: #unit tests:
image: golang:1.21.5 # image: golang:1.21.5
stage: test # stage: test
script: # script:
- go version # - go version
- go install golang.org/x/vuln/cmd/govulncheck@latest # - go test $(go list ./... | grep -v /integration) -race -coverprofile=coverage.out
- govulncheck ./... # - 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