ci(nix): run go {vet|test} in one step
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
fb0d215760
commit
d48923e97f
@ -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 ./..."
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user