Skip to content

Commit

Permalink
Fix coverage call and check total
Browse files Browse the repository at this point in the history
  • Loading branch information
sergerad committed Apr 1, 2024
1 parent 8e6d0c8 commit 176bfcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
run: ./.github/workflows/scripts/examples.sh

- name: Run Test
shell: bash
run: |
go test -v . -covermode=count -coverprofile=coverage.out
go tool cover -func=coverage.out -o=coverage.ougo tool cover -func=coverage.out -o=coverage.outt
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/bootstrap
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -30,6 +31,8 @@ jobs:
run: ./.github/workflows/scripts/examples.sh

- name: Run Test
shell: bash
run: |
go test -v . -covermode=count -coverprofile=coverage.out
go tool cover -func=coverage.out -o=coverage.ougo tool cover -func=coverage.out -o=coverage.outt
go tool cover -func=coverage.out -o=coverage.out
grep total < coverage.out | grep '100.0%'

0 comments on commit 176bfcf

Please sign in to comment.