mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 15:32:08 +08:00
CI: Upgrade golangci-lint and base image (#26892)
* CI: Upgrade build image to use golangci-lint 1.30.0 Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * Upgrade Debian base image Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * Makefile: Upgrade golangci-lint Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
build_image = 'grafana/build-container:1.2.22'
|
||||
build_image = 'grafana/build-container:1.2.23'
|
||||
publish_image = 'grafana/grafana-ci-deploy:1.2.5'
|
||||
grafana_docker_image = 'grafana/drone-grafana-docker:0.2.0'
|
||||
alpine_image = 'alpine:3.12'
|
||||
@ -202,10 +202,6 @@ def init_steps(edition):
|
||||
]
|
||||
|
||||
def lint_backend_step(edition):
|
||||
cmd = 'make lint-go'
|
||||
if edition == 'enterprise':
|
||||
cmd = 'GO_FILES=./pkg/extensions make lint-go'
|
||||
|
||||
return {
|
||||
'name': 'lint-backend',
|
||||
'image': build_image,
|
||||
@ -217,7 +213,10 @@ def lint_backend_step(edition):
|
||||
'initialize',
|
||||
],
|
||||
'commands': [
|
||||
cmd,
|
||||
# Don't use Make since it will re-download the linters
|
||||
'golangci-lint run --config scripts/go/configs/.golangci.toml ./pkg/...',
|
||||
'revive -formatter stylish -config scripts/go/configs/revive.toml ./pkg/...',
|
||||
'./scripts/revive-strict',
|
||||
],
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user