ci: fix test binary name duplicates (#404)

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2022-03-22 18:35:03 +09:00
committed by GitHub
parent 9a0f7f6bc6
commit 5eaf0860eb

View File

@@ -99,7 +99,7 @@ jobs:
key: test-${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}-${{ matrix.arch }}
- name: Build test binaries
run: go list ./... | xargs -Ipkg go test pkg -c
run: go list -f '{{.Dir}}' ./... | xargs -Ipkg go test pkg -c -o pkg.test
env:
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 0