CI: Introduce lint-backend pipeline (#55476)
* Introduce lint-backend pipeline * Use go image and install make * Don't run lint pipeline on .drone.yml changes
This commit is contained in:
@@ -207,7 +207,7 @@ def enterprise_downstream_step(edition, ver_mode):
|
||||
def lint_backend_step(edition):
|
||||
return {
|
||||
'name': 'lint-backend' + enterprise2_suffix(edition),
|
||||
'image': build_image,
|
||||
'image': go_image,
|
||||
'environment': {
|
||||
# We need CGO because of go-sqlite3
|
||||
'CGO_ENABLED': '1',
|
||||
@@ -216,6 +216,7 @@ def lint_backend_step(edition):
|
||||
'wire-install',
|
||||
],
|
||||
'commands': [
|
||||
'apt-get update && apt-get install make',
|
||||
# Don't use Make since it will re-download the linters
|
||||
'make lint-go',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user