Skip to content

Commit 3d14c5a

Browse files
Update package checks
1 parent a094250 commit 3d14c5a

File tree

5 files changed

+76
-8
lines changed

5 files changed

+76
-8
lines changed

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+
#
4+
# NOTE: This workflow is overkill for most R packages and
5+
# check-standard.yaml is likely a better choice.
6+
# usethis::use_github_action("check-standard") will install it.
7+
on:
8+
workflow_dispatch:
9+
10+
name: R-CMD-check-full.yaml
11+
12+
permissions: read-all
13+
14+
jobs:
15+
R-CMD-check:
16+
runs-on: ${{ matrix.config.os }}
17+
18+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
config:
24+
- {os: macos-latest, r: 'release'}
25+
26+
- {os: windows-latest, r: 'release'}
27+
# use 4.0 or 4.1 to check with rtools40's older compiler
28+
- {os: windows-latest, r: 'oldrel-4'}
29+
30+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
31+
- {os: ubuntu-latest, r: 'release'}
32+
- {os: ubuntu-latest, r: 'oldrel-1'}
33+
- {os: ubuntu-latest, r: 'oldrel-2'}
34+
- {os: ubuntu-latest, r: 'oldrel-3'}
35+
- {os: ubuntu-latest, r: 'oldrel-4'}
36+
37+
env:
38+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
39+
R_KEEP_PKG_SOURCE: yes
40+
41+
steps:
42+
- uses: actions/checkout@v4
43+
44+
- uses: r-lib/actions/setup-pandoc@v2
45+
46+
- uses: r-lib/actions/setup-r@v2
47+
with:
48+
r-version: ${{ matrix.config.r }}
49+
http-user-agent: ${{ matrix.config.http-user-agent }}
50+
use-public-rspm: true
51+
52+
- uses: r-lib/actions/setup-r-dependencies@v2
53+
with:
54+
extra-packages: any::rcmdcheck
55+
needs: check
56+
57+
- uses: r-lib/actions/check-r-package@v2
58+
with:
59+
upload-snapshots: true
60+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

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

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5+
branches: [main, master]
56
pull_request:
67
branches: [main, master]
78

8-
name: R-CMD-check
9+
name: R-CMD-check.yaml
10+
11+
permissions: read-all
912

1013
jobs:
1114
R-CMD-check:
@@ -17,7 +20,7 @@ jobs:
1720
fail-fast: false
1821
matrix:
1922
config:
20-
- {os: macOS-latest, r: 'release'}
23+
- {os: macos-latest, r: 'release'}
2124
- {os: windows-latest, r: 'release'}
2225
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
2326
- {os: ubuntu-latest, r: 'release'}
@@ -28,9 +31,9 @@ jobs:
2831
R_KEEP_PKG_SOURCE: yes
2932

3033
steps:
31-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v4
3235

33-
- uses: r-lib/actions/setup-pandoc@v1
36+
- uses: r-lib/actions/setup-pandoc@v2
3437

3538
- uses: r-lib/actions/setup-r@v2
3639
with:
@@ -40,6 +43,10 @@ jobs:
4043

4144
- uses: r-lib/actions/setup-r-dependencies@v2
4245
with:
43-
extra-packages: rcmdcheck
46+
extra-packages: any::rcmdcheck
47+
needs: check
4448

4549
- 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ knitr::opts_chunk$set(
1515

1616
# fable <a href='https://fable.tidyverts.org'><img src='man/figures/logo.png' align="right" height="138.5" /></a>
1717
<!-- badges: start -->
18-
[![R-CMD-check](https://github.com/tidyverts/fable/workflows/R-CMD-check/badge.svg)](https://github.com/tidyverts/fable/actions)
18+
[![R-CMD-check](https://github.com/tidyverts/fable/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidyverts/fable/actions/workflows/R-CMD-check.yaml)
1919
[![Coverage status](https://codecov.io/gh/tidyverts/fable/branch/master/graph/badge.svg)](https://app.codecov.io/github/tidyverts/fable?branch=master)
2020
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/fable)](https://cran.r-project.org/package=fable)
2121
[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<!-- badges: start -->
77

8-
[![R-CMD-check](https://github.com/tidyverts/fable/workflows/R-CMD-check/badge.svg)](https://github.com/tidyverts/fable/actions)
8+
[![R-CMD-check](https://github.com/tidyverts/fable/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidyverts/fable/actions/workflows/R-CMD-check.yaml)
99
[![Coverage
1010
status](https://codecov.io/gh/tidyverts/fable/branch/master/graph/badge.svg)](https://app.codecov.io/github/tidyverts/fable?branch=master)
1111
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/fable)](https://cran.r-project.org/package=fable)

0 commit comments

Comments
 (0)