Skip to content

Commit

Permalink
common: add CODECOV token to workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
osalyk committed Apr 19, 2024
1 parent 3a208d6 commit 516ca69
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/scan_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:
COVERAGE: 1
TEST_BUILD: debug
FAULT_INJECTION: 1
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

jobs:
linux:
Expand All @@ -32,5 +33,13 @@ jobs:
- name: Pull the image
run: cd $WORKDIR && ./pull-or-rebuild-image.sh

- name: Measure and upload code coverage
- name: Build CI
run: cd $WORKDIR && ./build-CI.sh

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
gcov: true
root_dir: /home/runner/work/pmdk/pmdk/
directory: /home/runner/work/pmdk/pmdk/
verbose: true
2 changes: 1 addition & 1 deletion utils/docker/build-CI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ containerName=pmdk-${OS}-${OS_VER}

if [[ $MAKE_PKG -eq 0 ]] ; then command="./run-build.sh"; fi
if [[ $MAKE_PKG -eq 1 ]] ; then command="./run-build-package.sh"; fi
if [[ $COVERAGE -eq 1 ]] ; then command="./run-coverage.sh"; fi
# if [[ $COVERAGE -eq 1 ]] ; then command="./run-coverage.sh"; fi
if [[ "$COVERITY" -eq 1 ]]; then command="./run-coverity.sh"; fi

if [ -n "$DNS_SERVER" ]; then DNS_SETTING=" --dns=$DNS_SERVER "; fi
Expand Down

0 comments on commit 516ca69

Please sign in to comment.