diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ed4bd6a0..361170e9a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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