From db76fff1ca1b9b9125c48df31f2f3413d12a467e Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Tue, 31 Mar 2020 17:54:13 +0200 Subject: [PATCH] Add coveralls settings --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 24 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7cb072a..cb2d39b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,7 +63,30 @@ jobs: make clean make -j test-coverage + - name: Coveralls assemble with lcov + run: lcov -c -d . -o lcov.info + if: "matrix.CC == 'gcc'" + + - name: Coveralls upload + uses: coverallsapp/github-action@master + if: "matrix.CC == 'gcc'" + with: + parallel: true + path-to-lcov: "./lcov.info" + github-token: ${{ secrets.GITHUB_TOKEN }} runs-on: ubuntu-latest container: 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 }} diff --git a/.gitignore b/.gitignore index dc85941..4309990 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.gcda *.gcno *.gcov +/lcov.info core vgcore.*