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:
Dimitris Sotirakis
2022-09-21 07:05:19 -04:00
committed by GitHub
parent b25ea75bac
commit c18432971b
6 changed files with 172 additions and 43 deletions
+2 -1
View File
@@ -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',
],