test(ci): add golangci-lint
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Tom Neuber 2024-06-19 21:29:50 +02:00
parent 275fa96769
commit 7f3f096ee3
Signed by: tom
GPG key ID: F17EFE4272D89FF6

View file

@ -9,6 +9,13 @@ steps:
when: when:
event: event:
- push - push
- name: golangci-linter
image: golangci/golangci-lint:v1.59.1
commands:
- golangci-lint run --enable-all ./...
when:
event:
- push
- name: vuln-check - name: vuln-check
image: golang:1.22.4 image: golang:1.22.4
commands: commands:
@ -40,6 +47,7 @@ steps:
- push - push
depends_on: depends_on:
- gofmt - gofmt
- golangci-linter
- vuln-check - vuln-check
- name: docker-build - name: docker-build
image: thegeeklab/drone-docker-buildx image: thegeeklab/drone-docker-buildx
@ -66,6 +74,7 @@ steps:
- push - push
depends_on: depends_on:
- gofmt - gofmt
- golangci-linter
- vuln-check - vuln-check
- name: bump tag in deployment-repo - name: bump tag in deployment-repo
image: git.ar21.de/aaron/kustomize-ci image: git.ar21.de/aaron/kustomize-ci