Skip to content

Commit 019a293

Browse files
feat: Allow Laravel Sail to run Pest 4 Browser tests (#812)
* feat: Allow Laravel Sail to run Pest 4 Browser tests * Update Dockerfile * Update Dockerfile --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 20f2fb8 commit 019a293

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

runtimes/8.3/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ENV DEBIAN_FRONTEND=noninteractive
1313
ENV TZ=UTC
1414
ENV SUPERVISOR_PHP_COMMAND="/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan serve --host=0.0.0.0 --port=80"
1515
ENV SUPERVISOR_PHP_USER="sail"
16+
ENV PLAYWRIGHT_BROWSERS_PATH=0
1617

1718
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
1819

@@ -43,6 +44,7 @@ RUN apt-get update && apt-get upgrade -y \
4344
&& npm install -g npm \
4445
&& npm install -g pnpm \
4546
&& npm install -g bun \
47+
&& npx playwright install-deps \
4648
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /etc/apt/keyrings/yarn.gpg >/dev/null \
4749
&& echo "deb [signed-by=/etc/apt/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
4850
&& curl -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/keyrings/pgdg.gpg >/dev/null \

runtimes/8.4/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ENV DEBIAN_FRONTEND=noninteractive
1313
ENV TZ=UTC
1414
ENV SUPERVISOR_PHP_COMMAND="/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan serve --host=0.0.0.0 --port=80"
1515
ENV SUPERVISOR_PHP_USER="sail"
16+
ENV PLAYWRIGHT_BROWSERS_PATH=0
1617

1718
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
1819

@@ -43,6 +44,7 @@ RUN apt-get update && apt-get upgrade -y \
4344
&& npm install -g npm \
4445
&& npm install -g pnpm \
4546
&& npm install -g bun \
47+
&& npx playwright install-deps \
4648
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /etc/apt/keyrings/yarn.gpg >/dev/null \
4749
&& echo "deb [signed-by=/etc/apt/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
4850
&& curl -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/keyrings/pgdg.gpg >/dev/null \

0 commit comments

Comments
 (0)