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 2, 2024
1 parent de0183f commit c96abf4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test-R.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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: Restore packages with renv
run: Rscript -e 'renv::restore()'

- name: Run test.R
run: |
Rscript test.R

0 comments on commit c96abf4

Please sign in to comment.