ci(nix): run go {vet|test} in one step
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-05-20 21:11:43 +02:00
parent fb0d215760
commit d48923e97f
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -134,7 +134,7 @@ def main(ctx):
]
},
{
"name": "go vet",
"name": "go vet|test",
"image": "docker.io/nixos/nix:2.8.0-amd64",
"pull": "if-not-exists",
"depends_on": ["enable sandbox"],
@ -153,31 +153,7 @@ def main(ctx):
}
],
"commands": [
"nix develop --command go vet ./..."
]
},
{
"name": "go test",
"image": "docker.io/nixos/nix:2.8.0-amd64",
"pull": "if-not-exists",
# "depends_on": ["nixpkgs-fmt", "statix"],
# "depends_on": ["go vet"],
"depends_on": ["enable sandbox"],
"volumes": [
{
"name": "nix",
"path": "/nix"
},
{
"name": "nixconf",
"path": "/etc/nix"
},
{
"name": "gopath",
"path": "/root/go"
}
],
"commands": [
"nix develop --command go vet ./...",
"nix develop --command go test -cover ./..."
]
},