Skip to content

Fix setting default tokens when verbose mode is FALSE and fix checks for GitLab token scopes #561

Fix setting default tokens when verbose mode is FALSE and fix checks for GitLab token scopes

Fix setting default tokens when verbose mode is FALSE and fix checks for GitLab token scopes #561

Workflow file for this run

on:
push:
branches: [master]
pull_request:
branches: [devel, test, master]
name: 🧪 Test coverage
jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.TEST_GITHUB_PAT }}
GITLAB_PAT_PUBLIC: ${{ secrets.GITLAB_PAT }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
USE_RENV: "FALSE"
steps:
- uses: actions/checkout@v3
- 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
needs: coverage
- name: Code coverage
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
)
shell: Rscript {0}
- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package