Standardising

This commit is contained in:
Hadley Wickham 2020-10-06 16:17:30 -05:00
parent 9b93818260
commit 5beb87b800
1 changed files with 11 additions and 12 deletions

View File

@ -1,6 +1,13 @@
on:
push:
branches: master
branches:
- master
pull_request:
branches:
- master
schedule:
# run every day at 11 PM
- cron: '0 23 * * *'
name: bookdown
@ -9,10 +16,9 @@ env:
jobs:
build:
runs-on: ubuntu-16.04
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RSPM: https://packagemanager.rstudio.com/cran/__linux__/xenial/latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
@ -20,7 +26,8 @@ jobs:
- name: Setup R
uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-pandoc@master
- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@master
- name: Get R version
id: get-r-version
@ -39,14 +46,6 @@ jobs:
install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
shell: Rscript {0}
- name: Install system dependencies
if: runner.os == 'Linux'
run: |
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(pak::local_system_requirements("ubuntu", "16.04"))')
- name: Install dependencies
run: |
pak::local_install_dev_deps()