Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 1 addition & 56 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,4 @@
include:
- project: cloud/integrations/ci
file:
- default.yml
- workflows/feature-branches.yml

variables:
GOMODCACHE: $CI_PROJECT_DIR/.cache/go-mod
GOCACHE: $CI_PROJECT_DIR/.cache/go-build

cache:
key:
files:
- go.mod
- go.sum
paths:
- $GOMODCACHE

build:
stage: build
image: golang:1.24
script:
- go env
- go mod download
- go -C ./tools mod download

test:lint:
stage: test
image: golangci/golangci-lint:v1.64.8
script:
- golangci-lint run -v

test:tidy:
stage: test
image: golang:1.24
script:
- go mod tidy -v
- git diff --exit-code

test:generate:
stage: test
image: golang:1.24
script:
- go generate ./...
- git diff --exit-code

test:unit:
stage: test
image: golang:1.24
script:
- go test -v -coverpkg=./... -coverprofile=coverage.txt ./... 2>&1 | tee test.out
- go -C ./tools run github.com/jstemmer/go-junit-report/v2@latest < test.out > report.xml
artifacts:
when: always
reports:
junit: report.xml
paths:
- report.xml
coverage: "/coverage: \\d+.\\d+% of statements/"
- cli/.gitlab-ci.yml