Fix invalid regular expression in "Set Redactor" guide (#44) #102
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
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 |