-
Notifications
You must be signed in to change notification settings - Fork 8
61 lines (47 loc) · 1.33 KB
/
on_push.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
on:
push:
paths-ignore:
- 'misc/**'
name: On Push
jobs:
testthat:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/rbmi:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build src
uses: ./.github/actions/build-src
- name: testthat
run: |
options(crayon.enabled = TRUE, cli.dynamic = FALSE)
devtools::test(stop_on_failure = TRUE, reporter = testthat::CheckReporter)
shell: Rscript {0}
document:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/rbmi:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build src
uses: ./.github/actions/build-src
with:
refresh: false
- name: Document Code
run: |
options(crayon.enabled = TRUE, cli.dynamic = FALSE)
devtools::document()
shell: Rscript {0}
- name: Check Is Clean
shell: bash
run: |
git config --global --add safe.directory /__w/rbmi/rbmi
git status
if [ -z "$(git status --porcelain)" ]; then
echo "Is Clean"
else
echo "Changed Detected"
exit 2
fi