File tree Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ repo_root=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /../../" && pwd) "
6+
7+ for path in " $repo_root " /packages/* /coverage/lcov.info; do
8+ [ -f " $path " ] || continue
9+
10+ pkg_dir=" $( dirname " $path " ) " # packages/foo/coverage
11+ pkg_root=" $( dirname " $pkg_dir " ) " # packages/foo
12+ tmp_path=" $pkg_dir /lcov.fixed.info"
13+
14+ sed " s|SF:src/|SF:packages/$( basename " $pkg_root " ) /src/|g" " $path " > " $tmp_path "
15+ done
Original file line number Diff line number Diff line change @@ -120,15 +120,19 @@ jobs:
120120 run : yarn build
121121 - name : Lerna test
122122 run : yarn lerna run --concurrency 1 --stream --no-prefix unit
123+ - name : Fix lcov paths
124+ run : |
125+ ./.github/actions/codecov-fix.sh
123126 - name : Upload coverage reports to Codecov
124127 uses : codecov/codecov-action@v5
125128 if : (matrix.node-version == '22.x' && matrix.transpile-worker-threads == true)
126129 with :
127130 token : ${{ secrets.CODECOV_TOKEN }}
128- files : ./packages/*/coverage/lcov.info
131+ files : ./packages/*/coverage/lcov.fixed. info
129132 verbose : true
130133 flags : cube_backend
131134 fail_ci_if_error : false
135+ plugins : noop
132136
133137 lint :
134138 runs-on : ubuntu-24.04
@@ -496,15 +500,19 @@ jobs:
496500 # Snowflake
497501 DRIVERS_TESTS_SNOWFLAKE_CUBEJS_DB_USER : ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_USER }}
498502 DRIVERS_TESTS_SNOWFLAKE_CUBEJS_DB_PASS : ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_PASS }}
503+ - name : Fix lcov paths
504+ run : |
505+ ./.github/actions/codecov-fix.sh
499506 - name : Upload coverage reports to Codecov
500507 uses : codecov/codecov-action@v5
501508 if : (matrix.node-version == '22.x')
502509 with :
503510 token : ${{ secrets.CODECOV_TOKEN }}
504- files : ./packages/*/coverage/lcov.info
511+ files : ./packages/*/coverage/lcov.fixed. info
505512 verbose : true
506513 flags : cube_backend
507514 fail_ci_if_error : false
515+ plugins : noop
508516
509517 integration-smoke :
510518 needs : [latest-tag-sha, build-cubestore, build-native-linux]
Original file line number Diff line number Diff line change @@ -13,7 +13,3 @@ coverage:
1313
1414github_checks :
1515 annotations : false
16-
17- fixes :
18- - " packages/([^/]*)/src/::packages/\\ 1/src/"
19-
You can’t perform that action at this time.
0 commit comments