Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"name": "Go",
"description": "Build and test with [Go](https://golang.org/).",
"template_path": "templates/gitlab-ci-golang.yml",
"kind": "build",
"variables": [
{
"name": "GO_IMAGE",
"description": "The Docker image used to run Go (build+test or build only) - **it is highly recommended to set the specific version your project needs**",
"default": "golang:buster"
},
{
"name": "GOPROXY",
"description": "URL of Go module proxy (see [Go env](https://golang.org/cmd/go/#hdr-Environment_variables))",
"advanced": true
},
{
"name": "GO_TEST_IMAGE",
"description": "Specific Docker image used to run Go tests (as a separate job)",
"advanced": true
},
{
"name": "GO_BUILD_ARGS",
"description": "Arguments used by the build command",
"default": "install -mod=readonly ./...",
"advanced": true
},
{
"name": "GO_TEST_ARGS",
"description": "Arguments used by the test command",
"default": "test -mod=readonly -v -coverprofile=reports/coverage.out -race ./...",
"advanced": true
},
{
"name": "GO_LIST_ARGS",
"description": "Arguments used by the list command",
"default": "list -u -m -mod=readonly -json all",
"advanced": true
}
],
"features": [
{
"id": "golangci-lint",
"name": "GolangCI-Lint",
"description": "[GolangCI-Lint](https://github.com/golangci/golangci-lint) analysis",
"variables": [
{
"name": "GO_CI_LINT_IMAGE",
"description": "The Docker image used to run `golangci-lint`",
"default": "golangci/golangci-lint:latest-alpine"
},
{
"name": "GO_CI_LINT_ARGS",
"description": "`golangci-lint` [command line arguments](https://github.com/golangci/golangci-lint#command-line-options)",
"default": "-E gosec,goimports ./...",
"advanced": true
}
]
},
{
"id": "go-mod-outdated",
"name": "Go-mod-outdated",
"description": "[Go-mod-outdated](https://github.com/psampaz/go-mod-outdated) analysis",
"variables": [
{
"name": "GO_MOD_OUTDATED_ARGS",
"description": "`god-mod-outdated` [command line arguments](https://github.com/psampaz/go-mod-outdated#usage",
"default": "-update -direct -style markdown -ci",
"advanced": true
}
]
}
]
}