File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11include :
22 - project : cloud/integrations/ci
33 file :
4- - default.yml
5- - workflows/feature-branches.yml
6-
7- variables :
8- GOMODCACHE : $CI_PROJECT_DIR/.cache/go-mod
9- GOCACHE : $CI_PROJECT_DIR/.cache/go-build
10-
11- cache :
12- key :
13- files :
14- - go.mod
15- - go.sum
16- paths :
17- - $GOMODCACHE
18-
19- build :
20- stage : build
21- image : golang:1.24
22- script :
23- - go env
24- - go mod download
25- - go -C ./tools mod download
26-
27- test:lint :
28- stage : test
29- image : golangci/golangci-lint:v1.64.8
30- script :
31- - golangci-lint run -v
32-
33- test:tidy :
34- stage : test
35- image : golang:1.24
36- script :
37- - go mod tidy -v
38- - git diff --exit-code
39-
40- test:generate :
41- stage : test
42- image : golang:1.24
43- script :
44- - go generate ./...
45- - git diff --exit-code
46-
47- test:unit :
48- stage : test
49- image : golang:1.24
50- script :
51- - go test -v -coverpkg=./... -coverprofile=coverage.txt ./... 2>&1 | tee test.out
52- - go -C ./tools run github.com/jstemmer/go-junit-report/v2@latest < test.out > report.xml
53- artifacts :
54- when : always
55- reports :
56- junit : report.xml
57- paths :
58- - report.xml
59- coverage : " /coverage: \\ d+.\\ d+% of statements/"
4+ - cli/.gitlab-ci.yml
You can’t perform that action at this time.
0 commit comments