-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (38 loc) · 1.16 KB
/
bioc-check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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:
branches:
- dev
- main
name: Bioc-check
jobs:
bioc-check:
runs-on: macos-latest
name: Bioc-check
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: release
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 & BiocCheckGitClone
run: |
bc_res <- BiocCheck::BiocCheck()
bc_gc_res <- BiocCheck::BiocCheckGitClone()
n_errors <- length(bc_res$error) + length(bc_gc_res$error)
if (n_errors > 0) {
message("BiocCheck failed ...")
quit(status = 1)
} else {
message("BiocCheck passed !")
}
shell: Rscript {0}