Skip to content

Commit

Permalink
added an action to run devtools::check()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellpeck committed Jul 31, 2024
1 parent 05a87c0 commit 3c87d4d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test
on:
push:
pull_request:
types: [opened, synchronize]
branches: [main]
jobs:
devtools-check:
strategy:
# currently, we expect the adapter to work with the same versions as flowr itself
# see https://github.com/flowr-analysis/flowr/blob/main/.github/workflows/full-test.yaml#L20
matrix:
r-version: [ '4.4.0', '4.3.2', '4.2.3', '4.0.0', '3.6.0' ]
os: [ ubuntu-latest ]
include:
- os: macos-latest
r-version: '4.4.0'
- os: windows-latest
r-version: '4.4.0'
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: devtools
- name: Run devtools::check()
# error on any type of notice from the check
run: Rscript -e 'devtools::check(error_on = "note")'

0 comments on commit 3c87d4d

Please sign in to comment.