Skip to content

Commit d95a68d

Browse files
committed
fix: tests
1 parent a187093 commit d95a68d

File tree

2 files changed

+25
-26
lines changed

2 files changed

+25
-26
lines changed

.github/workflows/playwright.yml

+19-21
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
name: Playwright Tests
2-
on:
3-
push:
4-
branches: [ main, master ]
5-
pull_request:
6-
branches: [ main, master ]
2+
3+
on: [pull_requests, workflow_dispatch]
4+
75
jobs:
86
test:
97
timeout-minutes: 60
108
runs-on: ubuntu-latest
119
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
14-
with:
15-
node-version: lts/*
16-
- name: Install dependencies
17-
run: npm install -g pnpm && pnpm install
18-
- name: Install Playwright Browsers
19-
run: pnpm exec playwright install --with-deps
20-
- name: Run Playwright tests
21-
run: pnpm exec playwright test
22-
- uses: actions/upload-artifact@v4
23-
if: ${{ !cancelled() }}
24-
with:
25-
name: playwright-report
26-
path: playwright-report/
27-
retention-days: 30
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: lts/*
14+
- name: Install dependencies
15+
run: npm install -g pnpm && pnpm install
16+
- name: Install Playwright Browsers
17+
run: pnpm exec playwright install --with-deps
18+
- name: Run Playwright tests
19+
run: pnpm exec playwright test
20+
- uses: actions/upload-artifact@v4
21+
if: ${{ !cancelled() }}
22+
with:
23+
name: playwright-report
24+
path: playwright-report/
25+
retention-days: 30

playwright.config.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ export default defineConfig({
7272
],
7373

7474
/* Run your local dev server before starting the tests */
75-
// webServer: {
76-
// command: "npm run start",
77-
// url: "http://127.0.0.1:4378",
78-
// reuseExistingServer: !process.env.CI,
79-
// },
75+
webServer: {
76+
command: "pnpm dev",
77+
url: "https:localhost:4378/",
78+
reuseExistingServer: !process.env.CI,
79+
ignoreHTTPSErrors: true,
80+
},
8081
});

0 commit comments

Comments
 (0)