From b44f0528975cf37a6e40e68b06bb500bea7e2a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Svensson?= Date: Mon, 18 Oct 2021 21:54:15 +0200 Subject: [PATCH] Use recommended Coveralls GitHub action in CI --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 564ae6e..90adbd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,8 +8,7 @@ jobs: - name: Prepare run: | sudo apt update -qq - sudo apt install -qq check - pip install cpp-coveralls + sudo apt install -qq check lcov - uses: actions/checkout@v2 - name: Build run: | @@ -20,9 +19,14 @@ jobs: run: sudo make install - name: Run tests run: make check + - name: Collect coverage + run: lcov --capture -d '.' --exclude '/usr*' -o coverage.info - name: Upload coverage if: github.repository == 'c9s/r3' - run: coveralls --exclude php + uses: coverallsapp/github-action@1.1.3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: coverage.info cmake: runs-on: ubuntu-latest