From b1916307f8b699685fdf4dff4669dcd1263535b1 Mon Sep 17 00:00:00 2001 From: Maxime Lagresle Date: Mon, 4 Nov 2024 08:52:00 +0100 Subject: [PATCH] use coverall 'parallel' for combining reports --- .github/workflows/tests.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4727769..86f0b4d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -97,24 +97,36 @@ jobs: run: go build -v ./... - name: Test with Embedded Client - run: go test -coverprofile=profile_embedded.cov -v ./... + run: go test -coverprofile=profile.cov -v ./... env: VAULTWARDEN_HOST: "127.0.0.1" VAULTWARDEN_PORT: "8080" TF_ACC: "1" TEST_USE_EMBEDDED_CLIENT: "1" + - name: Code Coverage for Embedded Client + continue-on-error: true + uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: profile.cov + parallel: true - name: Test with Official Client - run: go test -coverprofile=profile_official.cov -timeout 1000s -failfast -v ./... + run: go test -coverprofile=profile.cov -timeout 1000s -failfast -v ./... env: VAULTWARDEN_HOST: "127.0.0.1" VAULTWARDEN_PORT: "8080" TF_ACC: "1" - - - name: Combine Coverage - run: cat profile_embedded.cov profile_official.cov | sort -r | uniq > profile.cov - - name: Code Coverage + - name: Code Coverage for Official Client continue-on-error: true uses: shogo82148/actions-goveralls@v1 with: path-to-profile: profile.cov + parallel: true + + finish: + needs: test + runs-on: ubuntu-latest + steps: + - uses: shogo82148/actions-goveralls@v1 + with: + parallel-finished: true