From 209016fd003fbf105664e8ab5075ca8e7d213bd9 Mon Sep 17 00:00:00 2001 From: Simon Schoenbuchner <34340168+simisc@users.noreply.github.com> Date: Thu, 10 Dec 2020 18:39:36 +0000 Subject: [PATCH] migrate from travis to github actions --- .Rbuildignore | 1 + .github/.gitignore | 1 + .github/workflows/R-CMD-check.yaml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 3 --- DESCRIPTION | 2 +- README.Rmd | 2 +- README.md | 4 ++-- 7 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 .github/.gitignore create mode 100644 .github/workflows/R-CMD-check.yaml delete mode 100644 .travis.yml diff --git a/.Rbuildignore b/.Rbuildignore index 1c92417..80a3efd 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -3,3 +3,4 @@ ^README\.Rmd$ ^README-.*\.png$ ^\.travis\.yml$ +^\.github$ diff --git a/.github/.gitignore b/.github/.gitignore new file mode 100644 index 0000000..2d19fc7 --- /dev/null +++ b/.github/.gitignore @@ -0,0 +1 @@ +*.html diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml new file mode 100644 index 0000000..145f0dd --- /dev/null +++ b/.github/workflows/R-CMD-check.yaml @@ -0,0 +1,30 @@ +# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. +# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions +on: + push: + branches: + - main + - master + pull_request: + branches: + - main + - master + +name: R-CMD-check + +jobs: + R-CMD-check: + runs-on: macOS-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v2 + - uses: r-lib/actions/setup-r@v1 + - name: Install dependencies + run: | + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c9ec8f4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: r -warnings_are_errors: true -sudo: required diff --git a/DESCRIPTION b/DESCRIPTION index 1dceb61..4333e1d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: premiumPlots Type: Package Title: Plot PReMiuM results and diagnostics -Version: 1.1.1 +Version: 1.2.0 Authors@R: person("Simon", "Schoenbuchner", email = "sms86@cam.ac.uk", role = c("aut", "cre"), diff --git a/README.Rmd b/README.Rmd index ca5d32c..01097b2 100644 --- a/README.Rmd +++ b/README.Rmd @@ -14,7 +14,7 @@ knitr::opts_chunk$set( # premiumPlots -[![Build Status](https://travis-ci.com/simisc/premiumPlots.svg?branch=master)](https://travis-ci.com/simisc/premiumPlots) +[![R build status](https://github.com/simisc/premiumPlots/workflows/R-CMD-check/badge.svg)](https://github.com/simisc/premiumPlots/actions) [![DOI](https://zenodo.org/badge/120929260.svg)](https://zenodo.org/badge/latestdoi/120929260) [![Licence](https://img.shields.io/github/license/simisc/premiumPlots)](https://github.com/simisc/premiumPlots/blob/master/LICENSE) [![Lifecycle](https://img.shields.io/badge/lifecycle-dormant-blue.svg)](https://www.tidyverse.org/lifecycle/#dormant) diff --git a/README.md b/README.md index 5856d33..47663b0 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ # premiumPlots -[![Build -Status](https://travis-ci.com/simisc/premiumPlots.svg?branch=master)](https://travis-ci.com/simisc/premiumPlots) +[![R build +status](https://github.com/simisc/premiumPlots/workflows/R-CMD-check/badge.svg)](https://github.com/simisc/premiumPlots/actions) [![DOI](https://zenodo.org/badge/120929260.svg)](https://zenodo.org/badge/latestdoi/120929260) [![Licence](https://img.shields.io/github/license/simisc/premiumPlots)](https://github.com/simisc/premiumPlots/blob/master/LICENSE) [![Lifecycle](https://img.shields.io/badge/lifecycle-dormant-blue.svg)](https://www.tidyverse.org/lifecycle/#dormant)