Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanvoelkle committed Oct 5, 2023
1 parent 6071311 commit d8db700
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/.gitignore
@@ -0,0 +1 @@
*.html
27 changes: 19 additions & 8 deletions .github/workflows/R-CMD-check.yaml
@@ -1,4 +1,4 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# 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:
workflow_dispatch:
Expand All @@ -11,15 +11,21 @@ name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ubuntu-latest
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.browser }} (${{ matrix.version }})
name: ${{ matrix.config.os }} (${{ matrix.config.r }}): ${{ matrix.browser }} (${{ matrix.version }})

strategy:
fail-fast: false
matrix:
browser: [chrome, firefox]
version: [2.53.1, 3.141.59, latest]
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -36,17 +42,22 @@ jobs:
image: juyeongkim/test-server

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

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v1
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
env:
SELENIUM_BROWSER: ${{ matrix.browser }}
TEST_SERVER: http://test-server:8080
2 changes: 1 addition & 1 deletion DESCRIPTION
Expand Up @@ -48,4 +48,4 @@ Collate:
'util.R'
'webElement.R'
Encoding: UTF-8
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3

0 comments on commit d8db700

Please sign in to comment.