Skip to content

Commit 9bbb3e3

Browse files
committed
ci: add playwright action
ci: fix install ci: remove hard code version ci: fix nats server
1 parent ac5a851 commit 9bbb3e3

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/playwright.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [main, master]
5+
pull_request:
6+
branches: [main, master]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
services:
12+
nats:
13+
image: nats:latest
14+
ports:
15+
- 4222:4222
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: "pnpm"
25+
- name: Install dependencies
26+
run: pnpm install
27+
- name: Install Playwright Browsers
28+
run: npx playwright install --with-deps
29+
- name: Run Playwright tests
30+
run: npx playwright test
31+
- uses: actions/upload-artifact@v4
32+
if: ${{ !cancelled() }}
33+
with:
34+
name: playwright-report
35+
path: playwright-report/
36+
retention-days: 30

0 commit comments

Comments
 (0)