Skip to content

Commit 6f8f46f

Browse files
committed
use frankenphp in the playwright tests CI to handle parallel requests
better
1 parent 6c319fa commit 6f8f46f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.env.ci

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ TELESCOPE_ENABLED=false
6161

6262
# Services
6363
GOTENBERG_URL=http://0.0.0.0:3000
64+
65+
# Octane
66+
OCTANE_SERVER=frankenphp

.github/workflows/playwright.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,16 @@ jobs:
6565
- name: "Build Frontend"
6666
run: npm run build
6767

68-
- name: "Run Laravel Server"
69-
run: php artisan serve > /dev/null 2>&1 &
68+
- name: "Install FrankenPHP"
69+
run: |
70+
ARCH="$(uname -m)"
71+
curl -fsSL "https://github.com/dunglas/frankenphp/releases/latest/download/frankenphp-linux-${ARCH}" -o /usr/local/bin/frankenphp
72+
chmod +x /usr/local/bin/frankenphp
73+
74+
- name: "Run Laravel Octane Server"
75+
run: php artisan octane:start --server=frankenphp --host=127.0.0.1 --port=8000 --workers=4 --max-requests=500 > /dev/null 2>&1 &
76+
env:
77+
OCTANE_SERVER: frankenphp
7078

7179
- name: "Install Playwright Browsers"
7280
run: npx playwright install --with-deps

0 commit comments

Comments
 (0)