From f8c298bdb246b9e82557044c04c359ef5ecec249 Mon Sep 17 00:00:00 2001 From: mattssca Date: Tue, 9 Jan 2024 16:45:41 -0800 Subject: [PATCH] updated yml for git actions --- .github/workflows/build_test.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 3063275..dec88f3 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -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()" \ No newline at end of file