Skip to content

Commit

Permalink
updated yml for git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattssca committed Jan 10, 2024
1 parent a076353 commit f8c298b
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,27 @@ on:
branches: [main]

jobs:
build:
import-data:
runs-on: ubuntu-latest

steps:
- name: Install devtools
run:
Rscript -e "install.packages('devtools', repos = 'http://cran.us.r-project.org')"
- name: Set up R
uses: r-lib/actions/setup-r@v2

- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::devtools
- name: Check out repository
uses: actions/checkout@v3

- name: Build package
run:
Rscript -e "devtools::install()"
run: Rscript -e "devtools::install()"

- name: Check package
run:
Rscript -e "devtools::check(vignettes = FALSE)"
run: Rscript -e "devtools::check(vignettes = FALSE)"

- name: Run unit tests
run:
Rscript -e "devtools::test()"
run: Rscript -e "devtools::test()"

0 comments on commit f8c298b

Please sign in to comment.