Skip to content

Commit

Permalink
[#258] CodeCov Test
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbrown2 authored Dec 19, 2024
1 parent d4843c5 commit 329ed9d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/mc_dc_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,14 @@ jobs:
cd /tmp/libgcrypt-1.11.0 && ./configure && make install
ldconfig
- name: Upload to Code Cov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: 71699f25-12a3-44a4-8a83-be777b9e577a

- name: Fix Detached HEAD State
run: git checkout -B ${GITHUB_REF##*/}

- name: Build with Coverage Flags
run: |
export CFLAGS="-fprofile-arcs -ftest-coverage -g"
bash ${GITHUB_WORKSPACE}/support/scripts/build_internal.sh
- name: Generate Coverage Report and Badges
run: |
mkdir -p doc/coverage
Expand Down Expand Up @@ -93,6 +88,11 @@ jobs:
curl -o doc/coverage/line-coverage-badge.svg "https://img.shields.io/badge/line%20coverage-${LINE_COVERAGE_PERCENT}%25-${LINE_COLOR}"
curl -o doc/coverage/branch-coverage-badge.svg "https://img.shields.io/badge/branch%20coverage-${BRANCH_COVERAGE_PERCENT}%25-${BRANCH_COLOR}"
- name: Upload to Code Cov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: 71699f25-12a3-44a4-8a83-be777b9e577a

- name: Commit Coverage Badges
run: |
git config user.name "github-actions"
Expand Down

0 comments on commit 329ed9d

Please sign in to comment.