From a69f25df7781c3f9a803c1c12f9b5e8955c59181 Mon Sep 17 00:00:00 2001 From: Kyle Xiao Date: Tue, 10 Sep 2024 21:06:36 +0800 Subject: [PATCH] ci: optimized unit-benchmark-test * no cache for self-hosted runner * no cover for UT, not in use --- .github/workflows/tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e128591..b528582 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,9 +16,10 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} + cache: false # don't use cache for self-hosted runners - name: Unit Test - run: go test -race -covermode=atomic -coverprofile=coverage.out ./... + run: go test -race ./... - name: Benchmark - run: go test -bench=. -benchmem -run=none ./... + run: go test -bench=. -benchmem -run=none ./... -benchtime=100ms