Skip to content

Commit

Permalink
Updated cmd-check to 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
lymt committed Oct 25, 2020
1 parent 1e2bf0c commit 1b386bc
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# NOTE: This workflow is overkill for most R packages
# check-standard.yaml is likely a better choice
# usethis::use_github_action("check-standard") will install it.
#
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
Expand Down Expand Up @@ -30,39 +26,31 @@ jobs:
- { os: windows-latest, r: "release" }
- { os: windows-latest, r: "3.6" }
- {
os: ubuntu-16.04,
r: "devel",
rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest",
http-user-agent: "R/4.0.0 (ubuntu-16.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions",
}
- {
os: ubuntu-16.04,
os: ubuntu-20.04,
r: "release",
rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest",
rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest",
}
- {
os: ubuntu-16.04,
r: "oldrel",
rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest",
os: ubuntu-20.04,
r: "devel",
rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest",
}
- {
os: ubuntu-16.04,
os: ubuntu-20.04,
r: "3.5",
rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest",
}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}

- uses: r-lib/actions/setup-pandoc@v1

Expand All @@ -87,7 +75,7 @@ jobs:
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "16.04"))')
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
- name: Install dependencies
run: |
Expand All @@ -104,7 +92,7 @@ jobs:

- name: Check
env:
_R_CHECK_CRAN_INCOMING_: false
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}

Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/render-readme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
paths:
- README.Rmd

name: Render README

jobs:
render:
name: Render README
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-pandoc@v1
- name: Install rmarkdown, remotes, and the local package
run: |
install.packages("remotes")
remotes::install_local(".")
remotes::install_cran("rmarkdown")
shell: Rscript {0}
- name: Render README
run: Rscript -e 'rmarkdown::render("README.Rmd")'
- name: Commit results
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git commit README.md -m 'Re-build README.Rmd' || echo "No changes to commit"
git push origin || echo "No changes to commit"

0 comments on commit 1b386bc

Please sign in to comment.