Merge pull request #146 from Nordix/coveralls-action

Use recommended Coveralls GitHub action in CI
This commit is contained in:
Yo-An Lin 2021-10-28 21:14:43 +08:00 committed by GitHub
commit e533bae646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,8 +8,7 @@ jobs:
- name: Prepare - name: Prepare
run: | run: |
sudo apt update -qq sudo apt update -qq
sudo apt install -qq check sudo apt install -qq check lcov
pip install cpp-coveralls
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build - name: Build
run: | run: |
@ -20,9 +19,14 @@ jobs:
run: sudo make install run: sudo make install
- name: Run tests - name: Run tests
run: make check run: make check
- name: Collect coverage
run: lcov --capture -d '.' --exclude '/usr*' -o coverage.info
- name: Upload coverage - name: Upload coverage
if: github.repository == 'c9s/r3' 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: cmake:
runs-on: ubuntu-latest runs-on: ubuntu-latest