- Fixed power slider #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run CI for R using https://eddelbuettel.github.io/r-ci/ | |
name: CMD check | |
on: | |
push: | |
pull_request: | |
env: | |
_R_CHECK_FORCE_SUGGESTS_: "false" | |
jobs: | |
document: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: Setup | |
uses: eddelbuettel/github-actions/r-ci-setup@master | |
- name: Bootstrap | |
run: ./run.sh bootstrap | |
#- name: Dependencies | |
# run: ./run.sh install_deps | |
- name: All Dependencies | |
run: ./run.sh install_all | |
- name: Create documentation | |
run: | | |
R -e " | |
install.packages(c('rcmdcheck', 'roxygen2', 'devtools')); | |
file.remove('NAMESPACE'); | |
descr <- readLines('DESCRIPTION'); | |
descr <- stringr::str_replace(descr, '^Date.*$', paste('Date:', Sys.Date())); | |
writeLines(descr, 'DESCRIPTION'); | |
roxygen2::roxygenise(); | |
try(devtools::build_manual()) | |
" | |
- name: commit | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
git pull | |
git add -f man/\* NAMESPACE | |
git commit -m 'Documentation' || echo "No changes to commit" | |
git push origin || echo "No changes to commit" | |
R-CMD-check: | |
if: ${{ always() }} | |
needs: document | |
strategy: | |
matrix: | |
include: | |
- {os: macOS-latest} | |
- {os: ubuntu-latest} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: Setup | |
uses: eddelbuettel/github-actions/r-ci-setup@master | |
- name: Bootstrap | |
run: ./run.sh bootstrap | |
- name: Install rcmdcheck | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
R -e " | |
install.packages(c('rcmdcheck', 'devtools')); | |
devtools::install_local() | |
" | |
- uses: r-lib/actions/check-r-package@v2 |