Skip to content

Commit

Permalink
Create tests-r-via-system
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rodrigues authored Jan 31, 2024
1 parent d4e88d5 commit 581a354
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/tests-r-via-system
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
devtools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Install R packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::devtools, any::codetools

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: devtools::test() via nix-shell
run: Rscript -e 'devtools::test()'

- 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

0 comments on commit 581a354

Please sign in to comment.