-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.2 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, dev]
name: playwright-test
jobs:
playwright-test:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- 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 frontend
- name: Compile
run: npm run build:deploy --prefix frontend
- name: Compile & Start
run: Rscript -e 'source("dev/start_for_tests.R")' &
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: frontend
- name: Run Playwright tests
run: npx playwright test
working-directory: frontend
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: frontend/playwright-report/
retention-days: 30