ci: run 'govet' with golangci-lint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-05-29 23:43:56 +02:00
parent c09507658a
commit 34936a5f72
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 4 additions and 6 deletions

@ -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 ./..."
]
},

@ -25,6 +25,7 @@ linters:
- goconst
- gocritic
- godot
- govet
- gofmt
- gofumpt
- goimports