Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Use shared facade script #47901

Merged
merged 3 commits into from Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 46 additions & 2 deletions .github/workflows/facades.yml
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
Comment on lines +21 to +22
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -31,10 +33,52 @@ jobs:
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
command: |
composer config repositories.facade-documenter vcs git@github.com:laravel-labs/facade-documenter.git
composer require --dev laravel/facade-documenter:dev-main --prefer-stable --prefer-dist --no-interaction --no-progress

- name: Update facade docblocks
run: php -f bin/facades.php
run: |
php -f vendor/bin/facade.php -- \
Illuminate\\Support\\Facades\\Lang \
Illuminate\\Support\\Facades\\Vite \
Illuminate\\Support\\Facades\\Hash \
Illuminate\\Support\\Facades\\Validator \
Illuminate\\Support\\Facades\\Event \
Illuminate\\Support\\Facades\\Auth \
Illuminate\\Support\\Facades\\App \
Illuminate\\Support\\Facades\\Mail \
Illuminate\\Support\\Facades\\Gate \
Illuminate\\Support\\Facades\\RateLimiter \
Illuminate\\Support\\Facades\\Response \
Illuminate\\Support\\Facades\\Cache \
Illuminate\\Support\\Facades\\Session \
Illuminate\\Support\\Facades\\File \
Illuminate\\Support\\Facades\\Cookie \
Illuminate\\Support\\Facades\\Http \
Illuminate\\Support\\Facades\\Config \
Illuminate\\Support\\Facades\\Queue \
Illuminate\\Support\\Facades\\URL \
Illuminate\\Support\\Facades\\Request \
Illuminate\\Support\\Facades\\Password \
Illuminate\\Support\\Facades\\DB \
Illuminate\\Support\\Facades\\Artisan \
Illuminate\\Support\\Facades\\Date \
Illuminate\\Support\\Facades\\Route \
Illuminate\\Support\\Facades\\Redis \
Illuminate\\Support\\Facades\\View \
Illuminate\\Support\\Facades\\Storage \
Illuminate\\Support\\Facades\\Pipeline \
Illuminate\\Support\\Facades\\Log \
Illuminate\\Support\\Facades\\Schema \
Illuminate\\Support\\Facades\\Redirect \
Illuminate\\Support\\Facades\\Crypt \
Illuminate\\Support\\Facades\\Bus \
Illuminate\\Support\\Facades\\Notification \
Illuminate\\Support\\Facades\\Blade \
Illuminate\\Support\\Facades\\Broadcast \
Illuminate\\Support\\Facades\\ParallelTesting \
Illuminate\\Support\\Facades\\Process

- name: Commit facade docblocks
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down