Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [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 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 20 | - uses: r-lib/actions/setup-r@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 21 | with: |
| 22 | use-public-rspm: true |
| 23 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 24 | - uses: r-lib/actions/setup-r-dependencies@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 25 | with: |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 26 | extra-packages: any::covr |
| 27 | needs: coverage |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 28 | |
| 29 | - name: Test coverage |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 30 | run: covr::codecov(quiet = FALSE) |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 31 | shell: Rscript {0} |