Skip to content

Commit f129e36

Browse files
GHA: Test with develop version of 'globals' and 'future' also on Windows
1 parent 5b50b6f commit f129e36

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
# - {os: ubuntu-latest, r: '3.6' }
3131
- {os: ubuntu-latest, r: 'release' , plan: multicore, label: 'w/ multicore' }
3232
- {os: ubuntu-latest, r: 'release' , plan: multisession, label: 'w/ multisession' }
33+
- {os: windows-latest, r: 'release', future_version: develop, label: 'w/ future-develop' }
34+
- {os: windows-latest, r: 'release', globals_version: develop, future_version: develop, label: 'w/ future-develop' }
3335
- {os: ubuntu-latest, r: 'release', future_version: develop, label: 'w/ future-develop' }
36+
- {os: ubuntu-latest, r: 'release', globals_version: develop, future_version: develop, label: 'w/ future-develop' }
3437

3538
env:
3639
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -48,6 +51,7 @@ jobs:
4851
R_FUTURE_PLAN: ${{ matrix.config.plan }}
4952
## FIXME: Eventually update to 'R_FUTURE_GLOBALS_ONREFERENCE=error'
5053
R_FUTURE_GLOBALS_ONREFERENCE: "warning"
54+
R_GLOBALS_VERSION: ${{ matrix.config.globals_version }}
5155
R_FUTURE_VERSION: ${{ matrix.config.future_version }}
5256

5357
steps:
@@ -74,6 +78,11 @@ jobs:
7478

7579
- name: Test with specific future version?
7680
run: |
81+
globals_version <- Sys.getenv("R_GLOBALS_VERSION")
82+
if (nzchar(globals_version)) {
83+
install.packages("remotes")
84+
remotes::install_github("futureverse/globals", ref=globals_version)
85+
}
7786
future_version <- Sys.getenv("R_FUTURE_VERSION")
7887
if (nzchar(future_version)) {
7988
install.packages("remotes")

0 commit comments

Comments
 (0)