From eb825169ce949cdcbb230b8b68e00c65e239b6a7 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Tue, 3 Dec 2024 15:05:28 +0100 Subject: [PATCH] do not run linter inside tests --- .github/workflows/push.yml | 2 +- Makefile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index fae751d61..092847b38 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -52,7 +52,7 @@ jobs: pip3 install wheel - name: Run tests - run: make test + run: make testonly - name: Publish test coverage uses: codecov/codecov-action@v4 diff --git a/Makefile b/Makefile index aada2f8eb..7f4c13100 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,9 @@ lint: vendor @echo "✓ Linting source code with https://golangci-lint.run/ ..." @golangci-lint run ./... -test: lint +test: lint testonly + +testonly: @echo "✓ Running tests ..." @gotestsum --format pkgname-and-test-fails --no-summary=skipped --raw-command go test -v -json -short -coverprofile=coverage.txt ./...