-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 880 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Tests
on:
push:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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: Install devtools
run: |
renv::install("devtools")
shell: Rscript {0}
- name: Run tests
run: |
devtools::test()
shell: Rscript {0}