-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.14 KB
/
test-R.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
47
48
49
50
51
52
53
54
55
name: Run test.R
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Setup renv
uses: r-lib/actions/setup-renv@v2
- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install Arial font
run: |
sudo apt-get update
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo apt-get install -y ttf-mscorefonts-installer
sudo fc-cache -fv
sudo fc-list
- name: Setup TinyTex
uses: r-lib/actions/setup-tinytex@v2
- name: Run test.R
run: |
Rscript test.R
- name: Save input artifact
uses: actions/upload-artifact@v4
with:
name: test-input
path: input/
if-no-files-found: error
- name: Save output artifact
uses: actions/upload-artifact@v4
with:
name: test-output
path: output/
if-no-files-found: error