Skip to content

Commit 70ab470

Browse files
authored
Move facades job to separate workflow (#45434)
1 parent 4acf945 commit 70ab470

File tree

2 files changed

+45
-37
lines changed

2 files changed

+45
-37
lines changed

.github/workflows/facades.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: facades
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
8+
9+
if: ${{ github.repository_owner == 'laravel' }}
10+
11+
jobs:
12+
update:
13+
runs-on: ubuntu-22.04
14+
15+
strategy:
16+
fail-fast: true
17+
18+
name: Facade DocBlocks
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: 8.1
28+
tools: composer:v2
29+
coverage: none
30+
31+
- name: Install dependencies
32+
uses: nick-fields/retry@v2
33+
with:
34+
timeout_minutes: 5
35+
max_attempts: 5
36+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
37+
38+
- name: Update facade docblocks
39+
run: php -f bin/facades.php
40+
41+
- name: Commit facade docblocks
42+
uses: stefanzweifel/git-auto-commit-action@v4
43+
with:
44+
commit_message: Update facade docblocks
45+
file_pattern: src/

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -38,40 +38,3 @@ jobs:
3838

3939
- name: Execute type checking
4040
run: vendor/bin/phpstan --configuration="phpstan.${{ matrix.directory }}.neon.dist"
41-
42-
facades:
43-
runs-on: ubuntu-22.04
44-
45-
strategy:
46-
fail-fast: true
47-
48-
name: Facade DocBlocks
49-
50-
if: ${{ github.repository_owner == 'laravel' && github.event_name == 'push' }}
51-
52-
steps:
53-
- name: Checkout code
54-
uses: actions/checkout@v3
55-
56-
- name: Setup PHP
57-
uses: shivammathur/setup-php@v2
58-
with:
59-
php-version: 8.1
60-
tools: composer:v2
61-
coverage: none
62-
63-
- name: Install dependencies
64-
uses: nick-fields/retry@v2
65-
with:
66-
timeout_minutes: 5
67-
max_attempts: 5
68-
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
69-
70-
- name: Update facade docblocks
71-
run: php -f bin/facades.php
72-
73-
- name: Commit facade docblocks
74-
uses: stefanzweifel/git-auto-commit-action@v4
75-
with:
76-
commit_message: Update facade docblocks
77-
file_pattern: src/

0 commit comments

Comments
 (0)