Skip to content

Commit

Permalink
Tweak R CI to work with ubuntu-latest, add cancellation of in-progr…
Browse files Browse the repository at this point in the history
…ess CI (#62)
  • Loading branch information
dylanhmorris authored Jan 18, 2025
1 parent 7daf461 commit e111b30
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
types: [published]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

name: pkgdown

jobs:
Expand All @@ -26,15 +30,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "2.19.2"

- uses: r-lib/actions/setup-r@v2
with:
r-version: "4.3.1"
use-public-rspm: true
install-r: false

- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "2.19.2"

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ on:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: actions/cache@v4
with:
path: "~/.cache/R/renv"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/r-cmd-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
check-package:
strategy:
Expand Down

0 comments on commit e111b30

Please sign in to comment.