Skip to content

Commit

Permalink
Use a different workaround for codecov issue 1296
Browse files Browse the repository at this point in the history
  • Loading branch information
jeking3 committed Dec 27, 2024
1 parent 1c83e58 commit 53dcc1a
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,32 +223,11 @@ jobs:
if: '!matrix.coverity'
run: ci/build.sh

- name: Collect coverage
if: matrix.coverage
run: ci/codecov.sh "collect"

# https://github.com/codecov/codecov-action/issues/1296
- name: Get branch for coverage
id: coverage_branch
if: matrix.coverage
run: |
if [ "${{ github.event_name }}" = "push" ]; then
echo "override_branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
else
echo "override_branch=" >> $GITHUB_OUTPUT
fi
- name: Upload coverage
if: matrix.coverage
uses: codecov/codecov-action@v5
with:
disable_search: true
fail_ci_if_error: true
files: coverage.info
name: Github Actions
override_branch: ${{ steps.coverage_branch.outputs.override_branch }}
token: ${{secrets.CODECOV_TOKEN}}
verbose: true
run: ci/codecov.sh "upload"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV.TOKEN }}

- name: Run coverity
if: matrix.coverity && github.event_name == 'push' && (github.ref_name == 'develop' || github.ref_name == 'master')
Expand Down Expand Up @@ -312,11 +291,12 @@ jobs:

- name: Upload coverage
if: matrix.coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
disable_search: true
file: __out/cobertura.xml
name: Github Actions
fail_ci_if_error: true
files: __out/cobertura.xml
name: github-actions
token: ${{secrets.CODECOV_TOKEN}}
verbose: true

Expand Down

0 comments on commit 53dcc1a

Please sign in to comment.