Skip to content

Commit 1b1396a

Browse files
committed
feat: add facades documents linter to workflow
1 parent 10d01d5 commit 1b1396a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ jobs:
3232
- name: Install dependencies
3333
run: |
3434
COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o
35+
composer config repositories.facade-documenter vcs [email protected]:hypervel/facade-documenter.git
36+
composer require --dev hypervel/facade-documenter:dev-main
37+
38+
- name: Lint facades documents
39+
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
40+
41+
- name: Lint coding style
42+
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --diff
3543

3644
- name: Execute tests
37-
run: |
38-
PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --diff
39-
vendor/bin/phpunit -c phpunit.xml.dist
45+
run: vendor/bin/phpunit -c phpunit.xml.dist

0 commit comments

Comments
 (0)