Skip to content

Commit f4ccb6e

Browse files
committed
feat: playwright yaml
1 parent 07153f5 commit f4ccb6e

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: pw
22
Title: Test your 'golem' Apps with 'Playwright'
3-
Version: 0.0.0.9015
3+
Version: 0.0.0.9016
44
Authors@R:
55
person("Colin", "Fay", , "contact@colinfay.me", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0001-7343-1846"))

inst/playwright.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
on:
2+
push:
3+
branches:
4+
- "*" # Matches all branches
5+
pull_request:
6+
branches:
7+
- "*" # Matches all branches for PR events
8+
9+
name: playwright.yaml
10+
11+
permissions: read-all
12+
13+
jobs:
14+
playwright:
15+
runs-on: ubuntu-latest
16+
env:
17+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
18+
R_KEEP_PKG_SOURCE: yes
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: r-lib/actions/setup-r@v2
23+
with:
24+
use-public-rspm: true
25+
26+
- uses: r-lib/actions/setup-r-dependencies@v2
27+
with:
28+
extra-packages: any::rcmdcheck
29+
needs: check
30+
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: lts/*
34+
35+
- name: Install dependencies
36+
run: cd tests/playwright && npm ci
37+
38+
- name: Install Playwright Browsers
39+
run: cd tests/playwright && npx playwright install --with-deps
40+
41+
- name: Playwright tests
42+
run: cd tests/playwright && npx playwright test
43+
44+
- uses: actions/upload-artifact@v4
45+
if: ${{ !cancelled() }}
46+
with:
47+
name: playwright-report
48+
path: tests/playwright/playwright-report/
49+
retention-days: 30

0 commit comments

Comments
 (0)