1
- on : [push, pull_request]
1
+ on :
2
+ push :
3
+ branches :
4
+ - master
5
+ pull_request :
6
+ branches :
7
+ - master
2
8
3
9
name : R-CMD-check
4
10
@@ -13,13 +19,13 @@ jobs:
13
19
matrix :
14
20
config :
15
21
- {os: macOS-latest, r: 'devel'}
16
- - {os: macOS-latest, r: '4.0 '}
17
- - {os: windows-latest, r: '4.0 '}
18
- - {os: ubuntu-16.04, r: '4.0 ', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
19
- - {os: ubuntu-16.04, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
20
- - {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
21
- - {os: ubuntu-16.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
22
- - {os: ubuntu-16.04, r: '3.3', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
22
+ - {os: macOS-latest, r: 'release '}
23
+ - {os: windows-latest, r: 'release '}
24
+ - {os: ubuntu-16.04, r: 'release ', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
25
+ - {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
26
+ - {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
27
+ - {os: ubuntu-16.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
28
+ - {os: ubuntu-16.04, r: '3.3', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
23
29
24
30
env :
25
31
R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
@@ -39,15 +45,16 @@ jobs:
39
45
run : |
40
46
install.packages('remotes')
41
47
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
48
+ writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
42
49
shell : Rscript {0}
43
50
44
51
- name : Cache R packages
45
52
if : runner.os != 'Windows'
46
53
uses : actions/cache@v1
47
54
with :
48
55
path : ${{ env.R_LIBS_USER }}
49
- key : ${{ runner.os }}-r- ${{ matrix.config.r }}-1-${{ hashFiles('.github/depends.Rds') }}
50
- restore-keys : ${{ runner.os }}-r- ${{ matrix.config.r }}-1-
56
+ key : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
57
+ restore-keys : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
51
58
52
59
- name : Install system dependencies
53
60
if : runner.os == 'Linux'
0 commit comments