Skip to content

refactor(tests): add setup.R as common import point and update github… #22

refactor(tests): add setup.R as common import point and update github…

refactor(tests): add setup.R as common import point and update github… #22

Workflow file for this run

name: Tests
on:
push:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev
shell: bash
- name: Set CRAN mirror and install renv
run: |
options(repos = c(CRAN = "https://cloud.r-project.org"))
install.packages("renv")
shell: Rscript {0}
- name: Restore R package library
run: renv::restore()
shell: Rscript {0}
- name: Run tests
run: |
library(testthat)
test_dir("tests/testthat")
shell: Rscript {0}