Skip to content

Commit

Permalink
Merge pull request #568 from RMI-PACTA/test/567-use-rmi-actions
Browse files Browse the repository at this point in the history
Test/567 use rmi actions
  • Loading branch information
AlexAxthelm authored Jun 11, 2024
2 parents 815ba86 + 99a50ba commit 5785385
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 188 deletions.
15 changes: 8 additions & 7 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
^LICENSE\.md$
^README\.Rmd$
^Rplots\.pdf$
^\.Rproj\.user$
^\.github$
^\.lintr$
^_pkgdown\.yml$
^codecov\.yml$
^cran-comments\.md$
^data-raw/.*$
^docs$
^\.github$
^LICENSE\.md$
^man-roxygen$
^pkgdown$
^_pkgdown\.yml$
^r2dii\.plot\.Rproj$
^README\.Rmd$
^\.Rproj\.user$
^Rplots\.pdf$
^vignettes/r2dii-plot\.Rmd$
^man-roxygen$
62 changes: 0 additions & 62 deletions .github/workflows/R-CMD-check.yaml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/R-CMD-check_r2dii-devel.yaml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/R.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
# This example file will enable R language checks on push or PR to the main
# branch.
# It will also run the checks every weeknight at midnight UTC
#
# Note the @main in `uses:` on the last line. This will call the latest version
# of the workflow from the `main` brnach in the RMI-PACTA/actions repo. You can
# also specify a tag from that repo, or a commit SHA to pin action versions.
on:
pull_request:
push:
branches: [main]
schedule:
- cron: '0 0 * * 1,2,3,4,5'
workflow_dispatch:

name: R

jobs:
R-package:
name: R Package Checks
uses: RMI-PACTA/actions/.github/workflows/R.yml@main

dev-r-cmd-check:
name: R CMD Check (dev versions)
uses: RMI-PACTA/actions/.github/workflows/R-CMD-check.yml@main
with:
upgrade-packages: 'TRUE'
cache-version: 'dev'
remotes: |
RMI-PACTA/r2dii.analysis
RMI-PACTA/r2dii.data
RMI-PACTA/r2dii.match
50 changes: 0 additions & 50 deletions .github/workflows/test-coverage.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions .lintr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
linters: linters_with_defaults(
line_length_linter = NULL,
object_length_linter = NULL,
indentation_linter = NULL,
object_name_linter = NULL,
object_usage_linter = NULL
)
exclusions: list(
"data-raw",
"tests/testthat/",
"vignettes/"
)

0 comments on commit 5785385

Please sign in to comment.