Skip to content

Commit 828044f

Browse files
committed
Compute coverage for v2
1 parent 34d86c6 commit 828044f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,12 @@ jobs:
106106
run: go mod download
107107

108108
- name: Run tests with coverage
109-
run: go test -coverprofile=coverage.out ./...
109+
run: |
110+
go test -coverprofile=coverage.out.tmp ./...
111+
pushd v2; go test -coverprofile=coverage-v2.out.tmp ./...; popd
112+
echo "mode: set" > coverage.out
113+
tail -n +2 coverage.out.tmp >> coverage.out
114+
tail -n +2 v2/coverage-v2.out.tmp >> coverage.out
110115
111116
- name: Calculate coverage
112117
run: |

0 commit comments

Comments
 (0)