From baca70cafc60c0e91899078740ad0c6ba5369857 Mon Sep 17 00:00:00 2001 From: Hein Date: Mon, 8 Dec 2025 17:20:40 +0200 Subject: [PATCH] Split coverage reports --- .github/workflows/tests.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f14fade..1c342ff 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -57,19 +57,25 @@ jobs: - name: Run resolvespec integration tests env: TEST_DATABASE_URL: "host=localhost user=postgres password=postgres dbname=resolvespec_test port=5432 sslmode=disable" - run: go test -tags=integration ./pkg/resolvespec -v + run: go test -tags=integration ./pkg/resolvespec -v -coverprofile=coverage-resolvespec-integration.out - name: Run restheadspec integration tests env: TEST_DATABASE_URL: "host=localhost user=postgres password=postgres dbname=restheadspec_test port=5432 sslmode=disable" - run: go test -tags=integration ./pkg/restheadspec -v + run: go test -tags=integration ./pkg/restheadspec -v -coverprofile=coverage-restheadspec-integration.out - name: Generate integration coverage env: TEST_DATABASE_URL: "host=localhost user=postgres password=postgres dbname=resolvespec_test port=5432 sslmode=disable" run: | - go test -tags=integration ./pkg/resolvespec ./pkg/restheadspec -coverprofile=coverage-integration.out - go tool cover -html=coverage-integration.out -o coverage-integration.html - - name: Upload integration coverage + go tool cover -html=coverage-resolvespec-integration.out -o coverage-resolvespec-integration.html + go tool cover -html=coverage-restheadspec-integration.out -o coverage-restheadspec-integration.html + - name: Upload resolvespec integration coverage uses: actions/upload-artifact@v5 with: - name: integration-coverage-report - path: coverage-integration.html + name: resolvespec-integration-coverage-report + path: coverage-resolvespec-integration.html + + - name: Upload restheadspec integration coverage + uses: actions/upload-artifact@v5 + with: + name: integration-coverage-restheadspec-report + path: coverage-restheadspec-integration