Skip to content

Commit

Permalink
Update GHA (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
yutannihilation authored May 11, 2024
1 parent 216099c commit aca7d2c
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: main
branches: [main, master]
pull_request:
branches: main
branches: [main, master]

name: R-CMD-check

permissions: read-all

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
Expand All @@ -16,22 +20,19 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, ggplot2: 'cran', r: 'release'}

- {os: windows-latest, ggplot2: 'cran', r: 'release'}

- {os: macos-latest, ggplot2: 'cran', r: 'release'}
- {os: windows-latest, ggplot2: 'cran', r: 'release'}
- {os: ubuntu-latest, ggplot2: 'cran', r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, ggplot2: 'cran', r: 'release'}
- {os: ubuntu-latest, ggplot2: 'cran', r: 'oldrel-1'}

- {os: ubuntu-latest, ggplot2: 'dev', r: 'release'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

Expand All @@ -46,14 +47,14 @@ jobs:
extra-packages: any::rcmdcheck
needs: check

# TODO: uncomment this when the next version of ggplot2 is released
- name: Install dev version of ggplot2
if: matrix.config.ggplot2 == 'dev'
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: tidyverse/ggplot2, tidyverse/purrr
extra-packages: tidyverse/ggplot2
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

0 comments on commit aca7d2c

Please sign in to comment.