Skip to content

Commit

Permalink
replaced BiocCheck action
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-leary7 committed Nov 21, 2023
1 parent be1a31f commit b1f1506
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 40 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/bioc-check-new.yaml

This file was deleted.

19 changes: 18 additions & 1 deletion .github/workflows/bioc-check.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# workflow derived from: https://github.com/insightsengineering/bioc-check-action
# but the above action doesn't actually work lol, it always fails, so I changed it

on:
push:
Expand All @@ -19,5 +20,21 @@ jobs:
http-user-agent: release
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install dependencies
run: |
install.packages("BiocManager")
BiocManager::install("BiocCheck")
shell: Rscript {0}
- name: Run BiocCheck
uses: insightsengineering/bioc-check-action@v1
run: |
bc_res <- BiocCheck::BiocCheck()
print(paste0("Errors: ", length(bc_res$error)))
print(paste0("Warnings: ", length(bc_res$warning)))
print(paste0("Notes: ", length(bc_res$note)))
n_errors <- length(bc_res$error)
Sys.setenv("BC_ERRORS" = n_errors)
shell: Rscript {0}
- name: Check BiocCheck results
run: |
if [[ $BC_ERRORS -gt 0 ]]; then exit 1; else echo "BiocCheck passed!"; fi
shell: bash

0 comments on commit b1f1506

Please sign in to comment.