chore(ci): Run golangci-lint in GitHub Actions (#88916)

* chore(ci): Run golangci-lint in GitHub Actions

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* chore(ci): Remove lint-backend step from Drone

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
This commit is contained in:
Dave Henderson
2024-06-07 12:30:31 -04:00
committed by GitHub
parent 58fdb24b0b
commit 3a8b59f5e8
5 changed files with 34 additions and 39 deletions
@@ -7,7 +7,6 @@ load(
"compile_build_cmd",
"enterprise_setup_step",
"identify_runner_step",
"lint_backend_step",
"lint_drone_step",
"validate_modfile_step",
"validate_openapi_spec_step",
@@ -45,7 +44,6 @@ def lint_backend_pipeline(trigger, ver_mode):
init_steps.append(wire_step)
test_steps = [
lint_backend_step(),
validate_modfile_step(),
validate_openapi_spec_step(),
]
-18
View File
@@ -199,24 +199,6 @@ def enterprise_downstream_step(ver_mode):
return step
def lint_backend_step():
return {
"name": "lint-backend",
"image": images["go"],
"environment": {
# We need CGO because of go-sqlite3
"CGO_ENABLED": "1",
},
"depends_on": [
"wire-install",
],
"commands": [
"apk add --update make build-base",
# Don't use Make since it will re-download the linters
"make lint-go",
],
}
def validate_modfile_step():
return {
"name": "validate-modfile",