blob: cb460f2af8da798ea5e17f478306cad24d3a7132 [file] [log] [blame]
Marc Kupietz1ae886b2021-12-21 19:04:05 +01001# 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
3on:
4 push:
5 branches: [main, master]
Marc Kupietz39af4a62023-04-19 20:21:16 +02006 paths-ignore:
7 - '**.md'
Marc Kupietz1ae886b2021-12-21 19:04:05 +01008 pull_request:
9 branches: [main, master]
Marc Kupietz39af4a62023-04-19 20:21:16 +020010 paths-ignore:
11 - '**.md'
Marc Kupietz1ae886b2021-12-21 19:04:05 +010012
13name: test-coverage
14
15jobs:
16 test-coverage:
17 runs-on: ubuntu-latest
18 env:
19 GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
20
21 steps:
Marc Kupietze222b532023-04-17 19:12:10 +020022 - uses: actions/checkout@v3
Marc Kupietz1ae886b2021-12-21 19:04:05 +010023
Marc Kupietz8da46912022-02-25 07:08:02 +010024 - uses: r-lib/actions/setup-r@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010025 with:
26 use-public-rspm: true
27
Marc Kupietz8da46912022-02-25 07:08:02 +010028 - uses: r-lib/actions/setup-r-dependencies@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010029 with:
Marc Kupietz12d10742022-06-29 21:20:57 +020030 extra-packages: any::covr, any::XML
Marc Kupietz8da46912022-02-25 07:08:02 +010031 needs: coverage
Marc Kupietz1ae886b2021-12-21 19:04:05 +010032
33 - name: Test coverage
Marc Kupietz8da46912022-02-25 07:08:02 +010034 run: covr::codecov(quiet = FALSE)
Marc Kupietz1ae886b2021-12-21 19:04:05 +010035 shell: Rscript {0}