christophe dervieux | 76d730d | 2021-09-15 15:02:02 +0200 | [diff] [blame] | 1 | # Workflow derived from https://github.com/r-lib/actions/tree/master/examples |
| 2 | # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main, master] |
| 6 | pull_request: |
| 7 | branches: [main, master] |
| 8 | |
| 9 | name: test-coverage |
| 10 | |
| 11 | jobs: |
| 12 | test-coverage: |
| 13 | runs-on: ubuntu-latest |
| 14 | env: |
| 15 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 16 | |
| 17 | steps: |
| 18 | - uses: actions/checkout@v2 |
| 19 | |
| 20 | - uses: r-lib/actions/setup-r@v1 |
| 21 | with: |
| 22 | use-public-rspm: true |
| 23 | |
| 24 | - uses: r-lib/actions/setup-r-dependencies@v1 |
| 25 | with: |
| 26 | extra-packages: covr |
| 27 | |
| 28 | - name: Test coverage |
| 29 | run: covr::codecov() |
| 30 | shell: Rscript {0} |