Skip to content

Commit

Permalink
use coverall 'parallel' for combining reports
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlaverse committed Nov 4, 2024
1 parent 5acd6a2 commit b191630
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b191630

Please sign in to comment.