Skip to content

Updated based on review comments #334

Updated based on review comments

Updated based on review comments #334

Workflow file for this run

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