Skip to content

Commit 4879993

Browse files
committed
Update GHA workflows
1 parent 9eb65f8 commit 4879993

File tree

5 files changed

+50
-23
lines changed

5 files changed

+50
-23
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ inst/resources/gitbook/js/app.min.js.map
1616
^reference$
1717
^pkgdown$
1818
^tests/manual$
19+
^codecov\.yml$

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

+30-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
2-
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
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.
37
on:
48
push:
59
branches: [main, master]
@@ -23,28 +27,42 @@ name: R-CMD-check
2327
jobs:
2428
R-CMD-check:
2529
runs-on: ${{ matrix.config.os }}
26-
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) [Pandoc ${{ matrix.config.pandoc }}]
30+
31+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
2732

2833
strategy:
2934
fail-fast: false
3035
matrix:
3136
config:
32-
- {os: windows-latest, pandoc: '2.16.1', r: 'release'} # IDE daily
33-
- {os: windows-latest, pandoc: '2.14.0.3', r: 'release'} # IDE release
34-
- {os: macOS-latest, pandoc: '2.16.1', r: 'release'} # IDE daily
35-
- {os: macOS-latest, pandoc: '2.14.0.3', r: 'release'} # IDE release
37+
# testing R release with last shipped pandoc version in RStudio IDE and new pandoc
38+
- {os: windows-latest, pandoc: '3.1.1', r: 'release'}
39+
- {os: macOS-latest, pandoc: '3.1.1', r: 'release'}
3640
- {os: ubuntu-latest, pandoc: 'devel', r: 'release'}
37-
- {os: ubuntu-latest, pandoc: '2.16.1', r: 'release'}
38-
- {os: ubuntu-latest, pandoc: '2.14.2', r: 'release'}
39-
- {os: ubuntu-latest, pandoc: '2.11.4', r: 'release'}
40-
- {os: ubuntu-latest, pandoc: '2.16.1', r: 'devel', http-user-agent: 'release'}
41+
# testing older pandoc versions
42+
- {os: ubuntu-latest, pandoc: '2.19.2', r: 'release'}
43+
- {os: ubuntu-latest, pandoc: '2.18', r: 'release'}
44+
- {os: ubuntu-latest, pandoc: '2.17.1.1', r: 'release'}
45+
- {os: ubuntu-latest, pandoc: '2.16.2', r: 'release'}
46+
# testing other R versions
47+
- {os: ubuntu-latest, pandoc: '2.16.2', r: 'devel', http-user-agent: 'release'}
48+
- {os: ubuntu-latest, pandoc: '2.16.2', r: 'oldrel-1'}
49+
- {os: ubuntu-latest, pandoc: '2.16.2', r: 'oldrel-2'}
50+
- {os: ubuntu-latest, pandoc: '2.16.2', r: 'oldrel-3'}
4151

4252
env:
4353
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4454
R_KEEP_PKG_SOURCE: yes
4555

4656
steps:
47-
- uses: actions/checkout@v2
57+
- uses: actions/checkout@v3
58+
59+
- uses: r-lib/actions/setup-pandoc@v2
60+
if: matrix.config.pandoc != 'devel'
61+
with:
62+
pandoc-version: ${{ matrix.config.pandoc }}
63+
64+
- uses: cderv/actions/setup-pandoc-nightly@nightly-pandoc
65+
if: matrix.config.pandoc == 'devel'
4866

4967
- uses: r-lib/actions/setup-r@v2
5068
with:
@@ -57,14 +75,6 @@ jobs:
5775
run: echo "TMPDIR=${{ runner.temp }}" >> $GITHUB_ENV
5876
shell: bash
5977

60-
- uses: r-lib/actions/setup-pandoc@v2
61-
if: matrix.config.pandoc != 'devel'
62-
with:
63-
pandoc-version: ${{ matrix.config.pandoc }}
64-
65-
- uses: cderv/actions/setup-pandoc-nightly@nightly-pandoc
66-
if: matrix.config.pandoc == 'devel'
67-
6878
- uses: r-lib/actions/setup-tinytex@v2
6979
env:
7080
# install full prebuilt version

.github/workflows/pkgdown.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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
13
on:
24
push:
35
branches: [main, master]
@@ -19,7 +21,7 @@ jobs:
1921
env:
2022
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2123
steps:
22-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2325

2426
- uses: r-lib/actions/setup-pandoc@v2
2527

@@ -40,7 +42,7 @@ jobs:
4042
key: 1-${{ hashFiles('vignettes/articles/examples.yml') }}
4143

4244
- name: Build pkgdown site
43-
run: pkgdown::build_site(new_process = FALSE)
45+
run: pkgdown::build_site(new_process = FALSE, install = FALSE)
4446
shell: Rscript {0}
4547

4648
- name: Deploy to Netlify

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# bookdown <a href="https://pkgs.rstudio.com/bookdown/"><img src="man/figures/logo.png" align="right" height="138" /></a>
22

33
<!-- badges: start -->
4-
[![R-CMD-check](https://github.com/rstudio/bookdown/workflows/R-CMD-check/badge.svg)](https://github.com/rstudio/bookdown/actions)
4+
[![R-CMD-check](https://github.com/rstudio/bookdown/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rstudio/bookdown/actions/workflows/R-CMD-check.yaml)
55
[![CRAN release](https://www.r-pkg.org/badges/version/bookdown)](https://CRAN.R-project.org/package=bookdown)
66
[![Codecov test coverage](https://codecov.io/gh/rstudio/bookdown/branch/main/graph/badge.svg)](https://app.codecov.io/gh/rstudio/bookdown?branch=main)
77
<!-- badges: end -->

codecov.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
comment: false
2+
3+
coverage:
4+
status:
5+
project:
6+
default:
7+
target: auto
8+
threshold: 1%
9+
informational: true
10+
patch:
11+
default:
12+
target: auto
13+
threshold: 1%
14+
informational: true

0 commit comments

Comments
 (0)