-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (31 loc) · 1.16 KB
/
ci.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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: R CI
on: [push, pull_request]
env:
cntr: uscbiostats/fmcmc:latest
jobs:
build:
runs-on: Ubuntu-latest
strategy:
matrix:
include:
- name: release
cmd: R
- name: dev
cmd: RD
steps:
- uses: actions/checkout@v2
- name: Container
run: docker pull uscbiostats/fmcmc:latest
- name: SessionInfo
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt uscbiostats/fmcmc:latest ${{ matrix.cmd }} -q -e 'sessionInfo()'
- name: Build
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt uscbiostats/fmcmc:latest ${{ matrix.cmd }} CMD build --no-build-vignettes --no-manual .
- name: Check
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt -e CI=true uscbiostats/fmcmc:latest ${{ matrix.cmd }} CMD check --no-vignettes --no-manual fmcmc_*.tar.gz