Skip to content

Commit

Permalink
First attempt at creating automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecnama authored Nov 29, 2024
1 parent 3454f9d commit b0a0b0f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/r-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: R Tests

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup R environment
uses: r-lib/actions/setup-r@v2
with:
r-version: 'latest'

- name: Install dependencies
run: |
Rscript -e 'install.packages("devtools")'
Rscript -e 'devtools::install_deps(dep = TRUE)'
- name: Run R tests
run: |
Rscript -e 'devtools::test()'

0 comments on commit b0a0b0f

Please sign in to comment.