@@ -10,57 +10,37 @@ name: R backfill corrections
10
10
11
11
on :
12
12
push :
13
- branches : [ main, prod ]
13
+ branches : [main, prod]
14
14
pull_request :
15
- types : [ opened, synchronize, reopened, ready_for_review ]
16
- branches : [ main, prod ]
15
+ types : [opened, synchronize, reopened, ready_for_review]
16
+ branches : [main, prod]
17
17
18
18
jobs :
19
19
build :
20
- runs-on : ubuntu-20.04
20
+ runs-on : ubuntu-latest
21
21
if : github.event.pull_request.draft == false
22
- strategy :
23
- matrix :
24
- r-version : [4.2.1]
25
22
defaults :
26
23
run :
27
24
working-directory : backfill_corrections/delphiBackfillCorrection
28
25
29
26
steps :
30
- - uses : actions/checkout@v2
31
- - name : Set up R ${{ matrix.r-version }}
27
+ - uses : actions/checkout@v4
28
+
29
+ - name : Set up R 4.2
32
30
uses : r-lib/actions/setup-r@v2
33
31
with :
34
- r-version : ${{ matrix.r-version }}
35
32
use-public-rspm : true
36
- - name : Install linux dependencies
37
- run : |
38
- sudo apt-get install \
39
- libcurl4-openssl-dev \
40
- libgdal-dev \
41
- libudunits2-dev \
42
- libglpk-dev \
43
- libharfbuzz-dev \
44
- libfribidi-dev
45
- - name : Get date
46
- id : get-date
47
- run : |
48
- echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
49
- - name : Cache R packages
50
- uses : actions/cache@v2
51
- with :
52
- path : ${{ env.R_LIBS_USER }}
53
- key : ${{ runner.os }}-r-backfillcorr-${{ steps.get-date.outputs.date }}
54
- restore-keys : |
55
- ${{ runner.os }}-r-backfillcorr-
33
+ r-version : 4.2
34
+
56
35
- name : Install and cache dependencies
57
36
env :
58
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59
38
uses : r-lib/actions/setup-r-dependencies@v2
60
39
with :
61
40
extra-packages : any::rcmdcheck
62
41
working-directory : backfill_corrections/delphiBackfillCorrection
63
- upgrade : ' TRUE'
42
+ upgrade : " TRUE"
43
+
64
44
- name : Check package
65
45
uses : r-lib/actions/check-r-package@v2
66
46
with :
0 commit comments