Skip to content

Commit 10f14f6

Browse files
committed
added GH workflow
1 parent 0c862e0 commit 10f14f6

File tree

5 files changed

+62
-5
lines changed

5 files changed

+62
-5
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ revdep/
1616
^pkgdown$
1717
^CRAN-SUBMISSION$
1818
^revdep$
19+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
name: R-CMD-check
10+
11+
permissions: read-all
12+
13+
jobs:
14+
R-CMD-check:
15+
runs-on: ${{ matrix.config.os }}
16+
17+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
config:
23+
- {os: macos-latest, r: 'release'}
24+
- {os: windows-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
26+
- {os: ubuntu-latest, r: 'release'}
27+
- {os: ubuntu-latest, r: 'oldrel-1'}
28+
29+
env:
30+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
31+
R_KEEP_PKG_SOURCE: yes
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- uses: r-lib/actions/setup-pandoc@v2
37+
38+
- uses: r-lib/actions/setup-r@v2
39+
with:
40+
r-version: ${{ matrix.config.r }}
41+
http-user-agent: ${{ matrix.config.http-user-agent }}
42+
use-public-rspm: true
43+
44+
- uses: r-lib/actions/setup-r-dependencies@v2
45+
with:
46+
extra-packages: any::rcmdcheck
47+
needs: check
48+
49+
- uses: r-lib/actions/check-r-package@v2
50+
with:
51+
upload-snapshots: true
52+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

README.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
output: github_document
33
---
44

5-
6-
[![Build Status](https://travis-ci.org/muschellij2/freesurfer.svg?branch=master)](https://travis-ci.org/muschellij2/freesurfer)
5+
<!-- badges: start -->
76
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/freesurfer)](https://cran.r-project.org/package=freesurfer)
87
[![](https://cranlogs.r-pkg.org/badges/grand-total/freesurfer)](https://cran.r-project.org/package=freesurfer)
98
[![DOI](https://zenodo.org/badge/67370835.svg)](https://zenodo.org/badge/latestdoi/67370835)
9+
[![R-CMD-check](https://github.com/muschellij2/freesurfer/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/muschellij2/freesurfer/actions/workflows/R-CMD-check.yaml)
10+
<!-- badges: end -->
1011

1112

1213
<!-- README.md is generated from README.Rmd. Please edit that file -->

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11

2-
[![Build
3-
Status](https://travis-ci.org/muschellij2/freesurfer.svg?branch=master)](https://travis-ci.org/muschellij2/freesurfer)
4-
[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/freesurfer)](https://cran.r-project.org/package=freesurfer)
2+
<!-- badges: start -->
3+
4+
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/freesurfer)](https://cran.r-project.org/package=freesurfer)
55
[![](https://cranlogs.r-pkg.org/badges/grand-total/freesurfer)](https://cran.r-project.org/package=freesurfer)
66
[![DOI](https://zenodo.org/badge/67370835.svg)](https://zenodo.org/badge/latestdoi/67370835)
7+
[![R-CMD-check](https://github.com/muschellij2/freesurfer/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/muschellij2/freesurfer/actions/workflows/R-CMD-check.yaml)
8+
<!-- badges: end -->
79

810
<!-- README.md is generated from README.Rmd. Please edit that file -->
911

0 commit comments

Comments
 (0)