do not run linter inside tests

This commit is contained in:
Denis Bilenko 2024-12-03 15:05:28 +01:00
parent d75fd2b309
commit eb825169ce
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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 ./...