Skip to content

Commit 01492b0

Browse files
msfstef3dyuval
authored andcommitted
feat: Add CodeCov to more packages (electric-sql#2734)
Adding the rest of our monorepo packages to CodeCov - including coverage, test analytics, and for TS packages we can upload the code itself for analysis.
1 parent 70fc07a commit 01492b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ts_test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ jobs:
134134
- name: build dependencies, if any
135135
run: pnpm -r --filter "$(jq '.name' -r package.json)^..." build
136136
- run: pnpm coverage
137-
138137
- name: Upload coverage reports to CodeCov
139138
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d
140139
with:
@@ -149,6 +148,9 @@ jobs:
149148
fail_ci_if_error: true
150149
flags: typescript,unit-tests,${{ matrix.package_dir }}
151150
files: ./junit/test-report.junit.xml
151+
# Upload all PR test results to single branch - requires overriding branch and commit
152+
override_branch: ${{ github.event_name == 'pull_request' && 'codecov/pr-test-aggregation' || '' }}
153+
override_commit: ${{ github.event_name == 'pull_request' && env.DUMMY_COMMIT_SHA || '' }}
152154

153155
check_and_build_examples:
154156
name: Check and build ${{ matrix.example_folder }}

0 commit comments

Comments
 (0)