From 90549152f739fafbbfc31d7667f1c505839def66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renzo=20C=C3=A1ceres=20Rossi?= Date: Tue, 10 Sep 2024 12:02:32 -0500 Subject: [PATCH] Add GitHub Actions workflow for R CMD Check --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4c50d8f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: R CMD Check + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + check: + name: R CMD Check + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup R + uses: r-lib/actions/setup-r@v2 + with: + r-version: '4.4' # Specify the R version you want to use + + - name: Install dependencies + run: | + install.packages(c('devtools', 'roxygen2', 'testthat'), dependencies = TRUE) + + - name: Install package + run: | + devtools::install() + + - name: Run R CMD check + run: | + devtools::check()