Skip to content

Commit

Permalink
migrate from travis to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
simisc committed Dec 10, 2020
1 parent a48f4bf commit 209016f
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 7 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
^README\.Rmd$
^README-.*\.png$
^\.travis\.yml$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
30 changes: 30 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -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}
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 209016f

Please sign in to comment.