-
Notifications
You must be signed in to change notification settings - Fork 31
39 lines (36 loc) · 1.04 KB
/
r-cmd-check.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
# Build
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: R ${{ matrix.config.r }} | ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {os: ubuntu-20.04, r: '4.0.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
steps:
- uses: actions/checkout@v2
#R Set-up
- name: Set up R ${{ matrix.config.r }}
uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}
#Install dependencies
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: covr
#Check R Package
- name: Check R package
uses: r-lib/actions/check-r-package@check-r-package
with:
artifact-name: rsdmx_r-${{ matrix.config.r }}_${{ matrix.config.os }}-results
#Test code coverage
- name: Test code coverage
run: covr::codecov()
shell: Rscript {0}