From 43819309e18ac7d496643fcd86489a2ee0927964 Mon Sep 17 00:00:00 2001 From: James Tucker Date: Wed, 26 Apr 2023 09:40:19 -0700 Subject: [PATCH] .github/workflows: split tests and benchmarks for caching Benchmark flags prevent test caching, so benchmarks are now executed independently of tests. Fixes #7975 Signed-off-by: James Tucker --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f0a9bb64..8e2d9b5b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -89,7 +89,11 @@ jobs: - name: build test wrapper run: ./tool/go build -o /tmp/testwrapper ./cmd/testwrapper - name: test all - run: ./tool/go test ${{matrix.buildflags}} -exec=/tmp/testwrapper -bench=. -benchtime=1x ./... + run: ./tool/go test ${{matrix.buildflags}} -exec=/tmp/testwrapper + env: + GOARCH: ${{ matrix.goarch }} + - name: bench all + run: ./tool/go test ${{matrix.buildflags}} -exec=/tmp/testwrapper -test.bench=. -test.benchtime=1x -test.run=^$ env: GOARCH: ${{ matrix.goarch }} - name: check that no tracked files changed