-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflow file for package-wide checks
- Loading branch information
1 parent
fb425b7
commit 57d8d98
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: checkPackage | ||
|
||
on: | ||
pull_request: | ||
branches: [main, master] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
extra-repositories: "https://rse.pik-potsdam.de/r/packages" | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: | | ||
gamstransfer=?ignore | ||
any::lucode2 | ||
any::covr | ||
any::madrat | ||
any::magclass | ||
any::citation | ||
any::gms | ||
any::goxygen | ||
any::GDPuc | ||
# piam packages also available on CRAN (madrat, magclass, citation, | ||
# gms, goxygen, GDPuc) will usually have an outdated binary version | ||
# available; by using extra-packages we get the newest version | ||
|
||
- name: Verify that lucode2::buildLibrary was successful | ||
shell: Rscript {0} | ||
run: lucode2:::isVersionUpdated() |