From d48923e97f7c793ca9e7ef7a54568e196ddf2a6d Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 20 May 2022 21:11:43 +0200 Subject: [PATCH] ci(nix): run go {vet|test} in one step --- .drone.starlark | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/.drone.starlark b/.drone.starlark index a11034d..2d21efd 100644 --- a/.drone.starlark +++ b/.drone.starlark @@ -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 ./..." ] },