Skip to content

Merge pull request #207 from rstudio/aron-refresh-documentation #477

Merge pull request #207 from rstudio/aron-refresh-documentation

Merge pull request #207 from rstudio/aron-refresh-documentation #477

on:
push:
branches:
- main
pull_request:
branches:
- main
name: test-coverage
jobs:
test-coverage:
runs-on: ubuntu-20.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RSC_VERSION: 2022.09.0
RSC_LICENSE: ${{ secrets.RSC_LICENSE }}
CONNECTAPI_INTEGRATED: true
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr, local::.
needs: coverage
- name: Setup test environment
run: |
connectapi:::build_test_env()
shell: Rscript {0}
- name: Test coverage
id: coverage
run: |
system(paste0("echo ::set-output name=OUTDIR::", Sys.getenv("R_SESSION_TMPDIR")))
tryCatch({
covr::codecov(clean = FALSE, quiet = FALSE)
}, error = function(e) {
message(e)
})
fs::dir_copy(Sys.getenv("R_SESSION_TMPDIR"), "/tmp/outputs")
shell: Rscript {0}
- name: Archive tempdir artifacts
uses: actions/upload-artifact@v2
if: always()
with:
name: tmpdir artifacts
path: |
/tmp/outputs