Skip to content

Commit

Permalink
Merge pull request #543 from carpentries/test-with-rstudio-renv
Browse files Browse the repository at this point in the history
use pandoc version in snapshot tests
  • Loading branch information
zkamvar authored Nov 15, 2023
2 parents 89db200 + 86d73ed commit b1c2f3a
Show file tree
Hide file tree
Showing 4 changed files with 478 additions and 33 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,18 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, cache: '~/Library/Application Support/renv', r: 'release'}
- {os: macOS-latest, cache: '~/Library/Application Support/renv', r: 'release'}

- {os: windows-latest, r: 'release'}
# Use 3.6 to trigger usage of RTools35
- {os: windows-latest, cache: '~\AppData\Local\renv', r: '3.6'}
# use 4.1 to check with rtools40's older compiler
- {os: windows-latest, r: '4.1'}

- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'release', cov: 'true'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'oldrel-1'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'oldrel-2'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'oldrel-3'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'oldrel-4'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'release', cov: 'true'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'oldrel-1'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'oldrel-2'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'oldrel-3'}
- {os: ubuntu-latest, cache: '~/.local/share/renv', r: 'oldrel-4'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -62,7 +60,6 @@ jobs:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2
if: runner.os != 'Windows'

- name: "Windows: setup TMPDIR"
if: runner.os == 'Windows'
Expand All @@ -71,10 +68,6 @@ jobs:
echo "TMPDIR=${{ runner.temp }}" >> $GITHUB_ENV
shell: bash

- name: "Setup devel pandoc windows"
uses: cderv/actions/setup-pandoc-nightly@nightly-pandoc
if: runner.os == 'Windows'

- name: "Setup R"
uses: r-lib/actions/setup-r@v2
with:
Expand All @@ -90,7 +83,7 @@ jobs:

- name: "Restore {renv} cache"
if: runner.os != 'Windows'
uses: actions/cache@v3.0.11
uses: actions/cache@v3
with:
path: ${{ env.RENV_PATHS_ROOT }}
key: ${{ runner.os }}-${{ env.OS_VERSION }}-renv-${{ runner.r }}-${{ hashFiles('.github/workflows/R-CMD-check.yaml') }}
Expand Down
File renamed without changes.
Loading

0 comments on commit b1c2f3a

Please sign in to comment.