Skip to content

Fix invalid regular expression in "Set Redactor" guide (#44) #102

Fix invalid regular expression in "Set Redactor" guide (#44)

Fix invalid regular expression in "Set Redactor" guide (#44) #102

on: [push, pull_request]
name: devtools-test
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'release'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::devtools
- name: Run devtools::test twice
run: |
run1 <- as.data.frame(devtools::test())
if (sum(run1$error, run1$failed, run1$warning) > 0) {
stop("Tests did not pass with devtools::test()")
}
run2 <- as.data.frame(devtools::test())
if (sum(run2$error, run2$failed, run2$warning) > 0) {
stop("Tests did not pass with devtools::test() when re-running (global state was modified)")
}
shell: Rscript {0}
- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check