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 39394d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/scan_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,13 @@ jobs:
- name: Pull the image
run: cd $WORKDIR && ./pull-or-rebuild-image.sh

- name: Measure and upload code coverage
- name: Run the build
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 39394d5

Please sign in to comment.