Use Codecov, coveralls doesn't work at all

The docs of the Github action aren't working at all and are not deemed
to work. The "parallels" feature is completely broken and others have
solved it by switching to Codecov.

See coverallsapp/github-action#13
This commit is contained in:
Benedikt Heine 2020-03-31 23:37:12 +02:00
parent db76fff1ca
commit c4fe74df37

View File

@ -63,30 +63,19 @@ jobs:
make clean make clean
make -j test-coverage make -j test-coverage
- name: Coveralls assemble with lcov - name: Generate coverage report
run: lcov -c -d . -o lcov.info run: lcov -c -d . -o lcov.info
if: "matrix.CC == 'gcc'" if: "matrix.CC == 'gcc'"
- name: Coveralls upload - name: Upload coverage to Codecov
uses: coverallsapp/github-action@master uses: codecov/codecov-action@v1
if: "matrix.CC == 'gcc'"
with: with:
parallel: true token: ${{ secrets.CODECOV_TOKEN }}
path-to-lcov: "./lcov.info" flags: unittests
github-token: ${{ secrets.GITHUB_TOKEN }} name: ${{ matrix.distro }}-${{ matrix.CC }}
fail_ci_if_error: true
if: "matrix.CC == 'gcc'"
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: dunst/ci:${{ matrix.distro }} image: dunst/ci:${{ matrix.distro }}
# Just send the signal to coveralls to finish
# the build and finalise coverage stats
finish-coverage:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls finish
uses: coverallsapp/github-action@master
with:
parallel-finish: true
github-token: ${{ secrets.GITHUB_TOKEN }}