Merge pull request #146 from Nordix/coveralls-action
Use recommended Coveralls GitHub action in CI
This commit is contained in:
commit
e533bae646
1 changed files with 7 additions and 3 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue