From 1cee2302385e196f30449815f7cd8331ffdf5cdd Mon Sep 17 00:00:00 2001 From: Norbert Orzechowicz Date: Wed, 4 Nov 2026 13:47:23 -0600 Subject: [PATCH] chore(flow-php/flow): install only Chromium headless shell for website tests - website CI installs Chromium headless shell instead of all Playwright browsers - removed comments that restated the code --- .github/workflows/test-website.yml | 9 +++++++-- bin/docs.php | 1 - .../src/Flow/Documentation/ClassesExtractor.php | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-website.yml b/.github/workflows/test-website.yml index 600990e0f..630db2fa2 100644 --- a/.github/workflows/test-website.yml +++ b/.github/workflows/test-website.yml @@ -120,10 +120,15 @@ jobs: - name: "Install PHPUnit" run: "composer install --working-dir=tools/phpunit" - - name: "Install Playwright browsers" - run: "vendor/bin/playwright-install --with-deps" + - name: "Install Playwright server" + run: "vendor/bin/playwright-install" working-directory: "web/landing" + # Playwright advises against caching browsers on CI: https://playwright.dev/docs/ci#caching-browsers + - name: "Install Playwright Chromium headless shell" + run: "npx playwright install --with-deps --only-shell chromium" + working-directory: "web/landing/vendor/playwright-php/playwright/bin" + - name: "Test" run: "just test-website" env: diff --git a/bin/docs.php b/bin/docs.php index 3af3f02e2..a1f4289e0 100755 --- a/bin/docs.php +++ b/bin/docs.php @@ -273,7 +273,6 @@ public function execute(InputInterface $input, OutputInterface $output): int try { $reflectionFunction = $reflector->reflectFunction($name); } catch (IdentifierNotFound) { - // Not available in the playground PHP version. continue; } diff --git a/src/tools/documentation/src/Flow/Documentation/ClassesExtractor.php b/src/tools/documentation/src/Flow/Documentation/ClassesExtractor.php index 5ea44dca1..1804ebe94 100644 --- a/src/tools/documentation/src/Flow/Documentation/ClassesExtractor.php +++ b/src/tools/documentation/src/Flow/Documentation/ClassesExtractor.php @@ -30,7 +30,7 @@ final readonly class ClassesExtractor { /** - * @param list $phpExtensions PHP extensions whose built-in types are extracted next to the repository ones + * @param list $phpExtensions */ public function __construct( private string $repositoryRootPath,