ci: run 'govet' with golangci-lint
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c09507658a
commit
34936a5f72
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user