Skip to content

Commit 28f9975

Browse files
authored
chore(ci): Fix codecov collection in push CI WF (#10099)
1 parent 9ffb837 commit 28f9975

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

.github/workflows/push.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,29 @@ env:
5050
PYTHON_VERSION_CURRENT: 3.11
5151

5252
jobs:
53+
latest-tag-sha:
54+
runs-on: ubuntu-24.04
55+
outputs:
56+
sha: ${{ steps.get-tag.outputs.sha }}
57+
steps:
58+
- uses: actions/checkout@v4
59+
with:
60+
fetch-depth: 0
61+
- id: git-log
62+
run: git log HEAD~30..HEAD
63+
- id: get-tag-test
64+
run: echo "$SHA $(git rev-list -n 1 "$(git tag --contains "$SHA")")"
65+
env:
66+
SHA: ${{ github.sha }}
67+
- id: get-tag
68+
run: echo "sha=$(git rev-list -n 1 "$(git tag --contains "$SHA")")" >> "$GITHUB_OUTPUT"
69+
env:
70+
SHA: ${{ github.sha }}
71+
- id: get-tag-out
72+
run: echo "$OUT"
73+
env:
74+
OUT: ${{ steps.get-tag.outputs.sha }}
75+
5376
unit:
5477
runs-on: ubuntu-24.04
5578
timeout-minutes: 60
@@ -505,7 +528,7 @@ jobs:
505528
- name: Combine all fixed LCOV files
506529
run: |
507530
echo "" > ./combined-integration-${{ matrix.db }}-${{ matrix.use_tesseract_sql_planner }}.lcov
508-
find ./packages -type f -name lcov.fixed.info -exec cat {} + >> ./combined-integration-${{ matrix.db }}.lcov || true
531+
find ./packages -type f -name lcov.fixed.info -exec cat {} + >> ./combined-integration-${{ matrix.db }}-${{ matrix.use_tesseract_sql_planner }}.lcov || true
509532
- name: Upload coverage artifact
510533
uses: actions/upload-artifact@v4
511534
with:
@@ -598,29 +621,6 @@ jobs:
598621
env:
599622
GITHUB_SHA: ${{ github.sha }}
600623

601-
latest-tag-sha:
602-
runs-on: ubuntu-24.04
603-
outputs:
604-
sha: ${{ steps.get-tag.outputs.sha }}
605-
steps:
606-
- uses: actions/checkout@v4
607-
with:
608-
fetch-depth: 0
609-
- id: git-log
610-
run: git log HEAD~30..HEAD
611-
- id: get-tag-test
612-
run: echo "$SHA $(git rev-list -n 1 "$(git tag --contains "$SHA")")"
613-
env:
614-
SHA: ${{ github.sha }}
615-
- id: get-tag
616-
run: echo "sha=$(git rev-list -n 1 "$(git tag --contains "$SHA")")" >> "$GITHUB_OUTPUT"
617-
env:
618-
SHA: ${{ github.sha }}
619-
- id: get-tag-out
620-
run: echo "$OUT"
621-
env:
622-
OUT: ${{ steps.get-tag.outputs.sha }}
623-
624624
docker-dev:
625625
needs: [latest-tag-sha, build-native-linux]
626626
if: (needs['latest-tag-sha'].outputs.sha != github.sha)

0 commit comments

Comments
 (0)