Skip to content

Commit

Permalink
Merge pull request #158 from UCD-SERG/error-on-test-warning
Browse files Browse the repository at this point in the history
set GitHub actions to treat warnings in test as errors
  • Loading branch information
d-morrison authored Jul 5, 2024
2 parents 8e94733 + e2ce022 commit fa07e68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
error-on: '"warning"'
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
2 changes: 1 addition & 1 deletion tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
library(testthat)
library(serocalculator)

test_check("serocalculator")
test_check("serocalculator", stop_on_warning = TRUE)

0 comments on commit fa07e68

Please sign in to comment.