Skip to content

Commit b5c32e6

Browse files
committed
another try
1 parent 4f926f6 commit b5c32e6

File tree

1 file changed

+52
-20
lines changed

1 file changed

+52
-20
lines changed

.github/workflows/push.yml

Lines changed: 52 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,30 @@ jobs:
123123
- name: Fix lcov paths
124124
run: |
125125
./.github/actions/codecov-fix.sh
126-
- name: Upload coverage reports to Codecov
127-
uses: codecov/codecov-action@v5
128-
if: (matrix.node-version == '22.x' && matrix.transpile-worker-threads == true)
129-
with:
130-
token: ${{ secrets.CODECOV_TOKEN }}
131-
files: ./packages/*/coverage/lcov.fixed.info
132-
verbose: true
133-
flags: cube_backend
134-
fail_ci_if_error: false
135-
plugins: noop
126+
- name: Debug coverage files
127+
run: |
128+
ls -al ./packages/*/coverage/lcov.fixed.info
129+
cat ./packages/*/coverage/lcov.fixed.info || true
130+
- name: Install Codecov CLI
131+
run: |
132+
curl -Os https://uploader.codecov.io/latest/linux/codecov
133+
chmod +x codecov
134+
mv codecov /usr/local/bin/
135+
- name: Combine all fixed LCOV files
136+
run: |
137+
echo "" > ./combined.lcov
138+
for f in ./packages/*/coverage/lcov.fixed.info; do
139+
cat "$f" >> ./combined.lcov
140+
done
141+
- name: Upload coverage to Codecov
142+
env:
143+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
144+
run: |
145+
codecov --token "$CODECOV_TOKEN" \
146+
--file ./combined.lcov \
147+
--flags cube_backend \
148+
--name "cube backend coverage" \
149+
--verbose
136150
137151
lint:
138152
runs-on: ubuntu-24.04
@@ -503,16 +517,34 @@ jobs:
503517
- name: Fix lcov paths
504518
run: |
505519
./.github/actions/codecov-fix.sh
506-
- name: Upload coverage reports to Codecov
507-
uses: codecov/codecov-action@v5
508-
if: (matrix.node-version == '22.x')
509-
with:
510-
token: ${{ secrets.CODECOV_TOKEN }}
511-
files: ./packages/*/coverage/lcov.fixed.info
512-
verbose: true
513-
flags: cube_backend
514-
fail_ci_if_error: false
515-
plugins: noop
520+
- name: Debug coverage files
521+
run: |
522+
ls -al ./packages/*/coverage/lcov.fixed.info
523+
cat ./packages/*/coverage/lcov.fixed.info || true
524+
- name: Debug coverage files
525+
run: |
526+
ls -al ./packages/*/coverage/lcov.fixed.info
527+
cat ./packages/*/coverage/lcov.fixed.info || true
528+
- name: Install Codecov CLI
529+
run: |
530+
curl -Os https://uploader.codecov.io/latest/linux/codecov
531+
chmod +x codecov
532+
mv codecov /usr/local/bin/
533+
- name: Combine all fixed LCOV files
534+
run: |
535+
echo "" > ./combined.lcov
536+
for f in ./packages/*/coverage/lcov.fixed.info; do
537+
cat "$f" >> ./combined.lcov
538+
done
539+
- name: Upload coverage to Codecov
540+
env:
541+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
542+
run: |
543+
codecov --token "$CODECOV_TOKEN" \
544+
--file ./combined.lcov \
545+
--flags cube_backend \
546+
--name "cube backend coverage" \
547+
--verbose
516548
517549
integration-smoke:
518550
needs: [latest-tag-sha, build-cubestore, build-native-linux]

0 commit comments

Comments
 (0)