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:
Arve Knudsen
2020-08-10 18:38:53 +02:00
committed by GitHub
parent a49daf5676
commit 3a362b758a
10 changed files with 147 additions and 67 deletions

View File

@ -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',
],
}