Skip to content

Commit

Permalink
feat: Add code coverage test
Browse files Browse the repository at this point in the history
Signed-off-by: Shubharanshu Mahapatra <[email protected]>
  • Loading branch information
Shubhranshu153 committed Oct 31, 2024
1 parent 9a0d84f commit a4bb0c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- '.github/workflows/e2e-macos.yaml'
- '.github/workflows/e2e-windows.yaml'
- '.github/workflows/e2e-linux.yaml'
- '.github/workflows/ci.yaml'
- 'contrib/packaging/**'
- 'deps/**'
- 'finch.yaml.d/**'
Expand All @@ -27,6 +28,7 @@ on:
- '.github/workflows/e2e-macos.yaml'
- '.github/workflows/e2e-windows.yaml'
- '.github/workflows/e2e-linux.yaml'
- '.github/workflows/ci.yaml'
- 'contrib/packaging/**'
- 'deps/**'
- 'finch.yaml.d/**'
Expand Down Expand Up @@ -221,7 +223,7 @@ jobs:
with:
go-version-file: go.mod
cache: false
run: |
- run:
PKG_COVERAGE=$(paste -sd, test-coverage/macos.txt)
go test -cover -coverpkg="${PKG_COVERAGE}" -coverprofile=coverage.out ./...
COVERAGE=$(go tool cover -func=coverage.out | grep total | awk '{print substr($3, 1, length($3)-1)}')
Expand Down

0 comments on commit a4bb0c0

Please sign in to comment.