Skip to content

Commit c36ba18

Browse files
authored
Merge pull request #1128 from RcppCore/feature/github_actions
Feature/GitHub actions
2 parents a72a27c + 916574d commit c36ba18

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Run CI for R using https://eddelbuettel.github.io/r-ci/
2+
3+
name: ci
4+
5+
on:
6+
push:
7+
pull_request:
8+
9+
env:
10+
USE_BSPM: "true"
11+
_R_CHECK_FORCE_SUGGESTS_: "false"
12+
13+
jobs:
14+
ci:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
include:
19+
- name: release
20+
cntr: rcpp/ci
21+
r: R
22+
- name: r-3.6
23+
cntr: rcpp/ci-3.6
24+
r: R
25+
- name: r-3.5
26+
cntr: rcpp/ci-3.5
27+
r: R
28+
- name: dev
29+
cntr: rcpp/ci-dev
30+
r: RD
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
35+
#- name: Bootstrap
36+
# run: |
37+
# curl -OLs https://eddelbuettel.github.io/r-ci/run.sh
38+
# chmod 0755 run.sh
39+
# ./run.sh bootstrap
40+
41+
- name: Container
42+
run: docker pull ${{ matrix.cntr }}
43+
44+
- name: SessionInfo
45+
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt ${{ matrix.cntr }} ${{ matrix.r }} -q -e 'sessionInfo()'
46+
47+
- name: Build
48+
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt ${{ matrix.cntr }} ${{matrix.r }} CMD build --no-build-vignettes --no-manual .
49+
50+
- name: Check
51+
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt ${{ matrix.cntr }} ${{ matrix.r }} CMD check --no-vignettes --no-manual Rcpp_*.tar.gz
52+
53+
covr:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Checkout Project
57+
uses: actions/checkout@v1
58+
59+
- name: Container
60+
run: docker pull rcpp/ci
61+
62+
- name: Coverage
63+
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt -e CODECOV_TOKEN=${{secrets.CODECOV_TOKEN }} rcpp/ci r -l covr -e 'codecov()'

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2020-12-16 Dirk Eddelbuettel <[email protected]>
2+
3+
* .github/workflows/ci.yaml: Add container-based CI runner
4+
15
2020-11-06 Dirk Eddelbuettel <[email protected]>
26

37
* DESCRIPTION: More URL updates, e.g. http -> https

0 commit comments

Comments
 (0)