Files
dbsetup/.gitlab-ci.yml
T
renovate 082a672a34
Release / release (push) Failing after 51s
dbsetup / vulnerabilities (push) Successful in 1m3s
dbsetup / test (push) Successful in 1m27s
pre-commit / pre-commit (push) Successful in 15m34s
chore(deps): update golang:1.25.5 docker digest to 3a01526 (#64)
2026-01-13 06:14:33 +00:00

39 lines
1.1 KiB
YAML

include:
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
- project: unboundsoftware/ci-templates
file: Defaults.gitlab-ci.yml
- project: unboundsoftware/ci-templates
file: Release.gitlab-ci.yml
- project: unboundsoftware/ci-templates
file: Pre-Commit-Go.gitlab-ci.yml
image: amd64/golang:1.25.5@sha256:3a015269a07c7a8594aa134f1051fbf47ae09d04e2f16fd1b7774f50e06fe5b5
stages:
- deps
- test
deps:
stage: deps
script:
- go mod download
test:
stage: test
dependencies:
- deps
script:
- CGO_ENABLED=1 go test -mod=readonly -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...
- go tool cover -html=coverage.txt -o coverage.html
- go tool cover -func=coverage.txt
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- chmod +x codecov
- ./codecov -t ${CODECOV_TOKEN} -R $CI_PROJECT_DIR -C $CI_COMMIT_SHA -r $CI_PROJECT_PATH
vulnerabilities:
stage: test
image: amd64/golang:1.25.5@sha256:3a015269a07c7a8594aa134f1051fbf47ae09d04e2f16fd1b7774f50e06fe5b5
script:
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...