Skip to content

Commit e054fbf

Browse files
committed
Changed Playwright webServer.command. Added permission restriction for playwright.yml
1 parent e4a893a commit e054fbf

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/playwright.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: Playwright Tests
2+
23
on:
34
push:
45
branches: [ main ]
56
pull_request:
67
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
712
jobs:
813
test:
914
timeout-minutes: 60

playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ export default defineConfig({
7272

7373
/* Run your local dev server before starting the tests */
7474
webServer: {
75-
command: 'frankenphp php-server --listen=127.0.0.1:9876',
75+
// command: 'frankenphp php-server --listen=127.0.0.1:9876',
76+
command: 'php -S 127.0.0.1:9876 > /dev/null 2>&1',
7677
url: 'http://localhost:9876',
7778
reuseExistingServer: !process.env.CI,
7879
},

0 commit comments

Comments
 (0)