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:
@@ -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(),
|
||||
]
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user