From 2eb25686d79af0bd3ebbbef7e470aaae0933fb67 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 11 Feb 2023 18:08:31 -0800 Subject: [PATCH] .github/workflows: simplify build-only go test invocation Signed-off-by: David Anderson --- .github/workflows/test.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f2d62a057..6ff8cae62 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -171,11 +171,7 @@ jobs: GOARCH: ${{ matrix.goarch }} CGO_ENABLED: "0" - name: build tests - run: | - toolgo=`pwd`/tool/go - for d in $($toolgo list -f '{{if .TestGoFiles}}{{.Dir}}{{end}}' ./... ); do - (echo $d; cd $d && $toolgo test -c) - done + run: ./tool/go test -exec=true ./... env: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }}