feat: initial version

This commit is contained in:
2025-03-30 13:27:34 +02:00
commit d354d7b831
14 changed files with 628 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
include:
- template: 'Workflows/MergeRequest-Pipelines.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.24.1@sha256:5ecf3334c3970cf435bf821e0b7c48276ca8f00459fbfa107f4702e59e011d97
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.24.1@sha256:5ecf3334c3970cf435bf821e0b7c48276ca8f00459fbfa107f4702e59e011d97
script:
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...