Skip to content

Commit

Permalink
Add GitHub Actions workflow for R CMD Check
Browse files Browse the repository at this point in the history
  • Loading branch information
lightbluetitan authored Sep 10, 2024
1 parent b963990 commit 9054915
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 9054915

Please sign in to comment.