From 7f3f096ee32bf7d10e71731ded5e22f8ae5bb7e6 Mon Sep 17 00:00:00 2001 From: Tom Neuber Date: Wed, 19 Jun 2024 21:29:50 +0200 Subject: [PATCH] test(ci): add golangci-lint --- .drone.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.drone.yml b/.drone.yml index 91ed3d1..bce580a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,6 +9,13 @@ steps: when: event: - push +- name: golangci-linter + image: golangci/golangci-lint:v1.59.1 + commands: + - golangci-lint run --enable-all ./... + when: + event: + - push - name: vuln-check image: golang:1.22.4 commands: @@ -40,6 +47,7 @@ steps: - push depends_on: - gofmt + - golangci-linter - vuln-check - name: docker-build image: thegeeklab/drone-docker-buildx @@ -66,6 +74,7 @@ steps: - push depends_on: - gofmt + - golangci-linter - vuln-check - name: bump tag in deployment-repo image: git.ar21.de/aaron/kustomize-ci