Skip to content

bump base image github workflow to 22.04 as 18.04 was deprecated #38

bump base image github workflow to 22.04 as 18.04 was deprecated

bump base image github workflow to 22.04 as 18.04 was deprecated #38

Workflow file for this run

name: R package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@master
- name: Install dependencies for devtools
run: |
sudo apt-get update -y
sudo apt-get install libgit2-dev -y
sudo apt-get install libssh2-1-dev -y
sudo apt-get install libcurl4-openssl-dev -y
sudo apt-get install pandoc -y
- name: Install devtools
run: install.packages("devtools")
shell: Rscript {0}
- name: Check code style
run: Rscript inst/lint.R
- name: Install dependencies
run: devtools::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Install webshot
run: install.packages("webshot")
shell: Rscript {0}
- name: Check documentation
run: Rscript inst/document.R
- name: Check package (as CRAN)
run: devtools::check(document = FALSE, args = "--no-tests", error_on = "warning", vignettes = FALSE)
shell: Rscript {0}
- name: Install package
run: devtools::install()
shell: Rscript {0}
- name: Testthat
run: devtools::test()
shell: Rscript {0}
- name: Coverage devtools
run: print(devtools::test_coverage(function_exclusions = "runDemo",
line_exclusions = list("R/allMethods.R" = 261)))
shell: Rscript {0}
- name: Check on Mac OS
env:
RHUB_TOKEN: ${{ secrets.RHUB_TOKEN }}
run: Rscript inst/rhubcheck.R "macos-highsierra-release-cran" "$RHUB_TOKEN"
- name: Check on Windows
env:
RHUB_TOKEN: ${{ secrets.RHUB_TOKEN }}
run: Rscript inst/rhubcheck.R "windows-x86_64-devel" "$RHUB_TOKEN"