-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (42 loc) · 1.22 KB
/
R-CMD-check-selenium.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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, master]
pull_request:
branches: [main, master]
name: R-CMD-check-selenium
jobs:
R-CMD-check:
runs-on: ubuntu-latest
name: ${{ matrix.browser }}
strategy:
fail-fast: false
matrix:
browser: [chrome, firefox]
services:
selenium:
image: selenium/standalone-${{ matrix.browser }}:3.141.0
ports:
- 4444:4444
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
SELENIDER_SESSION: selenium
SELENIDER_BROWSER: ${{ matrix.browser }}
SELENIDER_PORT: 4444
SELENIDER_DOCKER: TRUE
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true