Skip to content

Commit b963753

Browse files
committed
enable github action for R CMD check
1 parent 8feb90a commit b963753

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
^\.travis\.yml$
2+
.github
23
^.*\.Rproj$
34
^\.Rproj\.user$
45
doc/slides

.github/workflows/r-cmd-check.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Build
2+
3+
name: Build
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
name: R ${{ matrix.config.r }} | ${{ matrix.config.os }}
14+
runs-on: ${{ matrix.config.os }}
15+
strategy:
16+
matrix:
17+
config:
18+
- {os: ubuntu-20.04, r: '4.0.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
19+
steps:
20+
- uses: actions/checkout@v2
21+
#R Set-up
22+
- name: Set up R ${{ matrix.config.r }}
23+
uses: r-lib/actions/setup-r@v1
24+
with:
25+
r-version: ${{ matrix.config.r }}
26+
#Install dependencies
27+
- name: Install dependencies
28+
uses: r-lib/actions/setup-r-dependencies@v1
29+
with:
30+
extra-packages: covr
31+
#Test code coverage
32+
- name: Test code coverage
33+
run: covr::codecov()
34+
shell: Rscript {0}
35+
#Check R Package
36+
- name: Check R package
37+
uses: r-lib/actions/check-r-package@check-r-package
38+
with:
39+
artifact-name: rsdmx_r-${{ matrix.config.r }}_${{ matrix.config.os }}-results

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
**rsdmx**
22
=======
3-
[![Build Status](https://travis-ci.org/opensdmx/rsdmx.svg?branch=master)](https://travis-ci.org/opensdmx/rsdmx)
3+
[![Build Status](https://github.com/eblondel/rsdmx/actions/workflows/r-cmd-check.yml/badge.svg?branch=master)](https://github.com/eblondel/rsdmx/actions/workflows/r-cmd-check.yml)
44
[![codecov.io](https://codecov.io/github/opensdmx/rsdmx/coverage.svg?branch=master)](https://codecov.io/github/opensdmx/rsdmx?branch=master)
55
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/rsdmx)](https://cran.r-project.org/package=rsdmx)
66
[![cran checks](https://cranchecks.info/badges/worst/rsdmx)](https://cran.r-project.org/web/checks/check_results_rsdmx.html)

0 commit comments

Comments
 (0)