From 34936a5f72c2ca87fc6bd178607d7097b2b0bffe Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 29 May 2022 23:43:56 +0200 Subject: [PATCH] ci: run 'govet' with golangci-lint --- .drone.starlark | 9 +++------ .golangci.yml | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.drone.starlark b/.drone.starlark index 1183553..2369e14 100644 --- a/.drone.starlark +++ b/.drone.starlark @@ -173,7 +173,7 @@ def main(ctx): ] }, { - "name": "go vet|test", + "name": "go test", "image": "docker.io/nixos/nix:2.8.0-amd64", "pull": "if-not-exists", "depends_on": ["set up cachix"], @@ -192,7 +192,6 @@ def main(ctx): } ], "commands": [ - "nix develop --command go vet ./...", "nix develop --command go test -cover ./..." ] }, @@ -298,7 +297,7 @@ def main(ctx): ] }, { - "name": "vet|test", + "name": "test", "image": "docker.io/immawanderer/archlinux-go-fyne:linux-amd64", "pull": "always", "depends_on": ["pull archlinux"], @@ -309,7 +308,6 @@ def main(ctx): } ], "commands": [ - "go vet ./...", "go test -cover ./..." ] }, @@ -376,7 +374,7 @@ def main(ctx): ] }, { - "name": "vet|test", + "name": "test", "image": "docker.io/immawanderer/fedora-go-fyne:linux-amd64", "pull": "always", "depends_on": ["pull fedora"], @@ -387,7 +385,6 @@ def main(ctx): } ], "commands": [ - "go vet ./...", "go test -cover ./..." ] }, diff --git a/.golangci.yml b/.golangci.yml index 3c7c577..97198a3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -25,6 +25,7 @@ linters: - goconst - gocritic - godot + - govet - gofmt - gofumpt - goimports