Fixed code coverage step in build

pull/16/head
Abbas Cyclewala 2020-05-11 16:41:36 +05:30 committed by GitHub
parent 93d2547ac4
commit d2c9f97f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -30,4 +30,8 @@ jobs:
- name: Uninstrument
run: minicover uninstrument
- name: Report
run: minicover coverallsreport --repo-token ${{ secrets.COVERALLS_TOKEN }} --branch ${{ github.ref }}
run: minicover report --threshold 80
if: ${{ github.event_name == 'pull_request' }}
- name: Report coveralls
run: minicover coverallsreport --repo-token ${{ secrets.COVERALLS_TOKEN }} --branch ${{ github.ref#refs/heads/ }}
if: ${{ github.event_name == 'push' }}