From d0350962e94bb210374645287a1dc8a5e0e50c59 Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 21 May 2022 16:10:49 +0200 Subject: [PATCH] ci: merge go {vet|test} steps for fedora,arch --- .drone.starlark | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/.drone.starlark b/.drone.starlark index 5d8721c..a26d6c2 100644 --- a/.drone.starlark +++ b/.drone.starlark @@ -278,22 +278,7 @@ def main(ctx): ] }, { - "name": "vet", - "image": "docker.io/immawanderer/archlinux-go-fyne:linux-amd64", - "pull": "always", - "depends_on": ["pull archlinux"], - "volumes": [ - { - "name": "gopath", - "path": "/root/go" - } - ], - "commands": [ - "go vet ./..." - ] - }, - { - "name": "test", + "name": "vet|test", "image": "docker.io/immawanderer/archlinux-go-fyne:linux-amd64", "pull": "always", "depends_on": ["pull archlinux"], @@ -304,6 +289,7 @@ def main(ctx): } ], "commands": [ + "go vet ./...", "go test -cover ./..." ] }, @@ -370,22 +356,7 @@ def main(ctx): ] }, { - "name": "vet", - "image": "docker.io/immawanderer/fedora-go-fyne:linux-amd64", - "pull": "always", - "depends_on": ["pull fedora"], - "volumes": [ - { - "name": "gopath", - "path": "/root/go" - } - ], - "commands": [ - "go vet ./..." - ] - }, - { - "name": "test", + "name": "vet|test", "image": "docker.io/immawanderer/fedora-go-fyne:linux-amd64", "pull": "always", "depends_on": ["pull fedora"], @@ -396,6 +367,7 @@ def main(ctx): } ], "commands": [ + "go vet ./...", "go test -cover ./..." ] },