From 1b1396a53cb4bb053b921ea13360e74376019ab5 Mon Sep 17 00:00:00 2001 From: Sasaya Date: Wed, 23 Apr 2025 15:21:43 +0800 Subject: [PATCH] feat: add facades documents linter to workflow --- .github/workflows/tests.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aab39105..cc30c6ca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,8 +32,14 @@ jobs: - name: Install dependencies run: | COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o + composer config repositories.facade-documenter vcs git@github.com:hypervel/facade-documenter.git + composer require --dev hypervel/facade-documenter:dev-main + + - name: Lint facades documents + run: find src/support/src/Facades -type f -name '*.php' -printf '%f\n' | sort | grep -v Facade | sed -E 's/(.+)\.php/Hypervel\\\\Support\\\\Facades\\\\\1/' | xargs php -f vendor/bin/facade.php -- --lint + + - name: Lint coding style + run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --diff - name: Execute tests - run: | - PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --diff - vendor/bin/phpunit -c phpunit.xml.dist + run: vendor/bin/phpunit -c phpunit.xml.dist