Skip to content

Commit

Permalink
setup github action to run test.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jangevaare committed Jul 3, 2024
1 parent de0183f commit d2956ee
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test-R.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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

0 comments on commit d2956ee

Please sign in to comment.