add ci #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run CI for R using https://eddelbuettel.github.io/r-ci/ | |
# This file is a slight variant by running a matrix of containers | |
name: ci | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
env: | |
USE_BSPM: "true" | |
_R_CHECK_FORCE_SUGGESTS_: "false" | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
container: | |
image: ${{ matrix.cntr }} | |
strategy: | |
matrix: | |
include: | |
- name: release | |
cntr: vcfppR/ci | |
r: R | |
- name: r-4.2 | |
cntr: vcfppR/ci-4.2 | |
r: R | |
- name: r-4.1 | |
cntr: vcfppR/ci-4.1 | |
r: R | |
- name: r-4.0 | |
cntr: vcfppR/ci-4.0 | |
r: R | |
- name: r-3.6 | |
cntr: vcfppR/ci-3.6 | |
r: R | |
- name: dev | |
cntr: vcfppR/ci-dev | |
r: RD | |
steps: | |
- uses: actions/checkout@v3 | |
#- name: Bootstrap | |
# run: | | |
# curl -OLs https://eddelbuettel.github.io/r-ci/run.sh | |
# chmod 0755 run.sh | |
# ./run.sh bootstrap | |
- name: SessionInfo | |
run: ${{ matrix.r }} -q -e 'sessionInfo()' | |
- name: Build | |
run: ${{matrix.r }} CMD build --no-build-vignettes --no-manual . | |
- name: Check | |
run: CI=true ${{ matrix.r }} CMD check --no-vignettes --no-manual vcfppR_*.tar.gz | |