Skip to content

Commit b410b43

Browse files
Playwright and Testmo reporting example
0 parents  commit b410b43

7 files changed

Lines changed: 1753 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# .github/workflows/playwright-test.yml
2+
name: Playwright Tests
3+
4+
on:
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v6
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v6
18+
with:
19+
node-version: 24
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Install Playwright browsers
24+
run: npx playwright install --with-deps
25+
26+
- name: Run Playwright tests and submit to Testmo
27+
env:
28+
TESTMO_URL: ${{ secrets.TESTMO_URL }}
29+
TESTMO_TOKEN: ${{ secrets.TESTMO_TOKEN }}
30+
run: |
31+
npm test:testmo

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/node_modules
2+
/playwright-report
3+
/results
4+
/test-results

dev/docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
services:
2+
node:
3+
image: mcr.microsoft.com/playwright:v1.57.0-noble
4+
working_dir: /project
5+
volumes:
6+
- ./../:/project
7+
command: tail -f /dev/null

0 commit comments

Comments
 (0)