Skip to content

Commit f298ec2

Browse files
committed
ci: add Node Playwright E2E workflow that installs Python deps before running npm e2e
1 parent 86ddb0e commit f298ec2

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: E2E (Playwright)
2+
3+
on:
4+
push:
5+
branches: [ main, develop, release/** ]
6+
pull_request:
7+
8+
jobs:
9+
e2e-playwright:
10+
name: Node E2E (Playwright)
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 20
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.12'
25+
26+
- name: Upgrade pip and install Python deps (app + dev)
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -e .[dev]
30+
31+
- name: Install Node deps
32+
run: npm ci
33+
34+
- name: Install Playwright browsers
35+
run: npx playwright install --with-deps
36+
37+
- name: Run Playwright E2E smoke
38+
env:
39+
SCIDK_PROVIDERS: local_fs
40+
run: npm run e2e
41+
42+
- name: Upload Playwright report (on failure)
43+
if: failure()
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: playwright-report
47+
path: |
48+
playwright-report/
49+
test-results/
50+
if-no-files-found: ignore

0 commit comments

Comments
 (0)