From dfc6470d745b7cba74cddc70e25c86ad407882ad Mon Sep 17 00:00:00 2001 From: Peter Solymos Date: Sun, 19 May 2024 22:47:07 -0600 Subject: [PATCH] Add actions Signed-off-by: Peter Solymos --- .github/workflows/check.yml | 31 ++++++++++++++++++++++++++ .travis.yml | 14 ------------ appveyor.yml | 44 ------------------------------------- 3 files changed, 31 insertions(+), 58 deletions(-) create mode 100644 .github/workflows/check.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..c49c187 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,31 @@ +on: + push: + branches: + - master + +name: check + +jobs: + deploy: + runs-on: macOS-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: R setup + uses: r-lib/actions/setup-r@v2 + - name: Install pandoc + run: | + brew install pandoc + brew install --cask xquartz + - name: Install dependencies + run: Rscript -e 'install.packages(c("rmarkdown", "knitr", "pkgdown", "devtools"))' + - name: Check package + run: Rscript -e 'devtools::check()' + - name: Build site + run: Rscript -e 'pkgdown::build_site_github_pages(install=TRUE)' + - name: Deploy site + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: docs + clean: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f621776..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: r -sudo: required - -r_packages: - - covr - -r: - - release - - devel - - oldrel - - -after_success: - - Rscript -e 'library(covr);codecov()' diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index c7baac2..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,44 +0,0 @@ -# DO NOT CHANGE the "init" and "install" sections below - -environment: - R_CHECK_ARGS: --no-build-vignettes --no-manual - -# Download script file from GitHub -init: - ps: | - $ErrorActionPreference = "Stop" - Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1" - Import-Module '..\appveyor-tool.ps1' - -install: - ps: Bootstrap - -# Adapt as necessary starting from here - -build_script: - - travis-tool.sh install_deps - -test_script: - - travis-tool.sh run_tests - -on_failure: - - travis-tool.sh dump_logs - -artifacts: - - path: '*.Rcheck\**\*.log' - name: Logs - - - path: '*.Rcheck\**\*.out' - name: Logs - - - path: '*.Rcheck\**\*.fail' - name: Logs - - - path: '*.Rcheck\**\*.Rout' - name: Logs - - - path: '\*_*.tar.gz' - name: Bits - - - path: '\*_*.zip' - name: Bits