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", "image": "docker.io/nixos/nix:2.8.0-amd64",
"pull": "if-not-exists", "pull": "if-not-exists",
"depends_on": ["set up cachix"], "depends_on": ["set up cachix"],
@ -192,7 +192,6 @@ def main(ctx):
} }
], ],
"commands": [ "commands": [
"nix develop --command go vet ./...",
"nix develop --command go test -cover ./..." "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", "image": "docker.io/immawanderer/archlinux-go-fyne:linux-amd64",
"pull": "always", "pull": "always",
"depends_on": ["pull archlinux"], "depends_on": ["pull archlinux"],
@ -309,7 +308,6 @@ def main(ctx):
} }
], ],
"commands": [ "commands": [
"go vet ./...",
"go test -cover ./..." "go test -cover ./..."
] ]
}, },
@ -376,7 +374,7 @@ def main(ctx):
] ]
}, },
{ {
"name": "vet|test", "name": "test",
"image": "docker.io/immawanderer/fedora-go-fyne:linux-amd64", "image": "docker.io/immawanderer/fedora-go-fyne:linux-amd64",
"pull": "always", "pull": "always",
"depends_on": ["pull fedora"], "depends_on": ["pull fedora"],
@ -387,7 +385,6 @@ def main(ctx):
} }
], ],
"commands": [ "commands": [
"go vet ./...",
"go test -cover ./..." "go test -cover ./..."
] ]
}, },

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