-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.17 KB
/
playwright-test.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
# 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]
name: playwright-test
jobs:
playwright-test:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install dependencies
run: npm ci --prefix src
- name: Compile
run: npm run build:deploy --prefix src
- name: Compile & Start
run: Rscript -e 'source("dev/compile_testing.R")' &
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: src
- name: Run Playwright tests
run: npx playwright test
working-directory: src
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: src/playwright-report/
retention-days: 30