Update README.md #45
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
# 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-CMD-check-recmap | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
r-version: [4.2] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up R ${{ matrix.r-version }} | |
uses: r-lib/actions/setup-r@v1 | |
with: | |
r-version: ${{ matrix.r-version }} | |
- name: Install Linux packages | |
run: sudo apt-get install -y libcurl4-openssl-dev libicu-dev pandoc pandoc-citeproc texlive texlive-latex-extra texlive-fonts-extra | |
shell: bash {0} | |
- name: Install dependencies | |
run: | | |
install.packages(c("remotes", "rcmdcheck", "rmarkdown")) | |
remotes::install_deps(dependencies = TRUE) | |
shell: Rscript {0} | |
- name: Check | |
run: rcmdcheck::rcmdcheck(build_args = "", args = "", error_on = "error", check_dir = "/tmp/recmap.Rcheck") | |
shell: Rscript {0} | |
- name: codecov | |
run: install.packages('covr'); covr::codecov(type = "all", token=Sys.getenv('CODECOV_TOKEN')) | |
shell: Rscript {0} | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: recmap.Rcheck | |
path: /tmp/recmap.Rcheck | |
if-no-files-found: warn |