forked from remindmodel/remind
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.08 KB
/
test-code.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
on:
push:
branches:
- main
- master
- develop
pull_request:
branches:
- main
- master
- develop
name: check
jobs:
check:
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Remove .Rprofile
run: rm .Rprofile
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: https://rse.pik-potsdam.de/r/packages/
- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::gms
# piam packages also available on CRAN (madrat, magclass, citation,
# gms, goxygen, GDPuc) will usually have an outdated binary version
# available; by using extra-packages we get the newest version
- name: codeCheck
run: null <- gms::codeCheck(strict=TRUE)
shell: Rscript {0}
- name: fileSizeCheck
run: source(".github/workflows/size-check")
shell: Rscript {0}