diff --git a/.coveralls.yml b/.coveralls.yml index 6cd8da205..e0ed25152 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -1,4 +1,4 @@ -service_name: drone-io +service_name: gh-actions gcov_options: \-lp include: - include diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index e57487347..f3ddc6207 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -66,10 +66,11 @@ jobs: # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail run: ctest --output-on-failure -C ${{env.BUILD_TYPE}} - - name: coveralls + - name: Coverage Report if: matrix.os == 'ubuntu-latest' run: | - export TRAVIS_BRANCH=$GITHUB_REF_NAME && \ + CI_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} + echo "CI_BRANCH=CI_BRANCH" >> $GITHUB_ENV && \ export TRAVIS_JOB_ID=$GITHUB_RUN_NUMBER && \ git clone https://github.com/CrowCpp/cpp-coveralls.git && \ cd cpp-coveralls && \