Skip to content

Commit 82308ed

Browse files
committed
fixed coverage analysis
1 parent 8a50726 commit 82308ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
run: |
3333
echo "coverage_txt=${RUNNER_TEMP}/coverage.txt" >> "$GITHUB_OUTPUT"
3434
- name: Test Coverage (pkg)
35-
run: go test ./... -race -coverprofile=${{ steps.vars.outputs.coverage_txt }}
35+
run: |
36+
go test ./... -race -coverprofile=${{ steps.vars.outputs.coverage_txt }}.tmp
37+
cat ${{ steps.vars.outputs.coverage_txt }}.tmp | grep -v synchro/tz | grep -v synchro/scripts > ${{ steps.vars.outputs.coverage_txt }}
38+
go tool cover -func ${{ steps.vars.outputs.coverage_txt }}
3639
- name: Upload coverage
3740
if: ${{ matrix.go == '^1.23' }}
3841
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)