From fb93d6822ca7d5cf4341a80d2f0fc480a8d4fc7c Mon Sep 17 00:00:00 2001 From: Danil Tarasov <87192879+almostinf@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:34:52 +0300 Subject: [PATCH] fix: remove benchmarks from ci (#1032) --- .github/workflows/test.yml | 3 ++- Makefile | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 03de5fa18..6bfc03317 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,6 +27,7 @@ jobs: cache-dependency-path: go.sum - name: Run tests - run: make test + run: make ci-test + - name: Upload coverage to Codecov run: bash <(curl -s https://codecov.io/bash) diff --git a/Makefile b/Makefile index 97df83ae3..a8a46d544 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,10 @@ validate-spec: test: echo 'mode: atomic' > coverage.txt && go list ./... | xargs -n1 -I{} sh -c 'go test -race -v -bench=. -covermode=atomic -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.txt' && rm coverage.tmp +.PHONY: ci-test +ci-test: + echo 'mode: atomic' > coverage.txt && go list ./... | xargs -n1 -I{} sh -c 'go test -race -v -covermode=atomic -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.txt' && rm coverage.tmp + .PHONY: build build: for service in "filter" $(SERVICES) ; do \