From 7ffc6c95a1159c6d24c9192a9ec3567be0e75233 Mon Sep 17 00:00:00 2001 From: Rob Holland Date: Thu, 31 Oct 2024 16:58:53 +0000 Subject: [PATCH] Adjust coverage. --- .github/workflows/build-and-test.yml | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 5293844..6206694 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -41,4 +41,5 @@ jobs: run: go test -tags=integration ./... - name: Coverage + if: matrix.os == 'ubuntu-latest' run: make unit-test-coverage functional-test-coverage coverage-report diff --git a/Makefile b/Makefile index c5cdd7d..807b36a 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ unit-test-coverage: $(TEST_COVERAGE_OUTPUT_ROOT) functional-test-coverage: $(FUNCTIONAL_COVERAGE_OUTPUT_ROOT) @echo Functional test coverage - go test -cover ./app/test -coverpkg ./... -args -test.gocoverdir=$(FUNCTIONAL_COVERAGE_OUTPUT_ROOT) + go test -tags integration -cover ./app/test -coverpkg ./... -args -test.gocoverdir=$(FUNCTIONAL_COVERAGE_OUTPUT_ROOT) coverage-report: $(TEST_COVERAGE_OUTPUT_ROOT) $(FUNCTIONAL_COVERAGE_OUTPUT_ROOT) $(SUMMARY_COVERAGE_OUTPUT_ROOT) @echo Summary coverage report