Skip to content

Commit f44e52e

Browse files
committed
ci(config): Remove unused faker mappings and commented properties
- Removed 'faker' mapping from the array for clarity. - Commented out 'property-read' and 'property-write' replacements in phpdoc_no_alias_tag. - These changes streamline the configuration and improve readability. Signed-off-by: guanguans <[email protected]>
1 parent e451f2d commit f44e52e

18 files changed

+130
-75
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# These are supported funding model platforms
22

3+
github: guanguans
34
patreon: guanguans
45
custom: https://guanguans.github.io/sponsors

.github/dependabot.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1+
# Please see the documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
14
version: 2
25
updates:
3-
- package-ecosystem: github-actions
6+
7+
- package-ecosystem: "github-actions"
48
directory: "/"
59
schedule:
6-
interval: daily
7-
time: "21:00"
8-
open-pull-requests-limit: 10
10+
interval: "monthly"
11+
labels:
12+
- "dependencies"
913

10-
- package-ecosystem: composer
14+
- package-ecosystem: "composer"
1115
directory: "/"
1216
schedule:
13-
interval: daily
14-
time: "21:00"
15-
open-pull-requests-limit: 10
17+
interval: "monthly"
18+
labels:
19+
- "dependencies"

.github/workflows/dependabot-auto-merge.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ permissions:
1111
jobs:
1212
dependabot:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 5
1415
if: ${{ github.actor == 'dependabot[bot]' }}
1516
steps:
1617

1718
- name: Dependabot metadata
1819
id: metadata
19-
uses: dependabot/fetch-metadata@v2.4.0
20+
uses: dependabot/fetch-metadata@v2
2021
with:
2122
github-token: "${{ secrets.GITHUB_TOKEN }}"
2223

.github/workflows/php-cs-fixer.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ name: php-cs-fixer
33
on:
44
workflow_dispatch:
55
push:
6+
pull_request:
67

78
jobs:
89
php-cs-fixer:
910
name: php-cs-fixer
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/checkout@v6
13+
- name: Checkout
14+
uses: actions/checkout@v6
1315

1416
- name: Setup PHP
1517
uses: shivammathur/setup-php@v2
@@ -20,11 +22,18 @@ jobs:
2022
env:
2123
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2224

25+
- name: Get composer cache directory
26+
id: composer-cache
27+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
28+
2329
- name: Cache composer dependencies
2430
uses: actions/cache@v4
2531
with:
26-
path: vendor
27-
key: composer-${{ hashFiles('composer.lock') }}
32+
path: ${{ steps.composer-cache.outputs.dir }}
33+
# Use composer.json for key, if composer.lock is not committed.
34+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
35+
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
36+
restore-keys: ${{ runner.os }}-composer-
2837

2938
- name: Run composer install
3039
run: composer install --no-interaction --prefer-dist --ansi -v

.github/workflows/phpstan.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,15 @@ name: phpstan
33
on:
44
workflow_dispatch:
55
push:
6-
paths:
7-
- '**.php'
8-
- '*.neon'
9-
- '*.xml'
10-
- '*.xml.dist'
11-
- '.github/**.yaml'
12-
- '.github/**.yml'
6+
pull_request:
137

148
jobs:
159
phpstan:
1610
name: phpstan
1711
runs-on: ubuntu-latest
1812
steps:
19-
- uses: actions/checkout@v6
13+
- name: Checkout
14+
uses: actions/checkout@v6
2015

2116
- name: Setup PHP
2217
uses: shivammathur/setup-php@v2
@@ -27,11 +22,18 @@ jobs:
2722
env:
2823
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2924

25+
- name: Get composer cache directory
26+
id: composer-cache
27+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
28+
3029
- name: Cache composer dependencies
3130
uses: actions/cache@v4
3231
with:
33-
path: vendor
34-
key: composer-${{ hashFiles('composer.lock') }}
32+
path: ${{ steps.composer-cache.outputs.dir }}
33+
# Use composer.json for key, if composer.lock is not committed.
34+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
35+
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
36+
restore-keys: ${{ runner.os }}-composer-
3537

3638
- name: Run composer install
3739
run: composer install --no-interaction --prefer-dist --ansi -v

.github/workflows/rector.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@ name: rector
33
on:
44
workflow_dispatch:
55
push:
6-
paths:
7-
- '**.php'
8-
- '.github/**.yml'
9-
- '.github/**.yaml'
10-
- '*.xml'
11-
- '*.xml.dist'
6+
pull_request:
127

138
jobs:
149
rector:
1510
name: rector
1611
runs-on: ubuntu-latest
1712
steps:
18-
- uses: actions/checkout@v6
13+
- name: Checkout
14+
uses: actions/checkout@v6
1915

2016
- name: Setup PHP
2117
uses: shivammathur/setup-php@v2
@@ -26,11 +22,18 @@ jobs:
2622
env:
2723
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2824

25+
- name: Get composer cache directory
26+
id: composer-cache
27+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
28+
2929
- name: Cache composer dependencies
3030
uses: actions/cache@v4
3131
with:
32-
path: vendor
33-
key: composer-${{ hashFiles('composer.lock') }}
32+
path: ${{ steps.composer-cache.outputs.dir }}
33+
# Use composer.json for key, if composer.lock is not committed.
34+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
35+
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
36+
restore-keys: ${{ runner.os }}-composer-
3437

3538
- name: Run composer install
3639
run: composer install --no-interaction --prefer-dist --ansi -v

.github/workflows/tests.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,29 @@ jobs:
1818
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
1919

2020
steps:
21-
- name: Checkout code
21+
- name: Checkout
2222
uses: actions/checkout@v6
2323

24-
- name: Cache dependencies
25-
uses: actions/cache@v4
26-
with:
27-
path: ~/.composer/cache/files
28-
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29-
3024
- name: Setup PHP
3125
uses: shivammathur/setup-php@v2
3226
with:
3327
php-version: ${{ matrix.php }}
3428
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, json, mbstring, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, sodium
3529
coverage: xdebug
3630

31+
# - name: Get composer cache directory
32+
# id: composer-cache
33+
# run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
34+
#
35+
# - name: Cache composer dependencies
36+
# uses: actions/cache@v4
37+
# with:
38+
# path: ${{ steps.composer-cache.outputs.dir }}
39+
# # Use composer.json for key, if composer.lock is not committed.
40+
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
41+
# # key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
42+
# restore-keys: ${{ runner.os }}-composer-
43+
3744
- name: Install dependencies
3845
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --ansi -v
3946

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@
216216
'phpdoc_no_alias_tag' => [
217217
'replacements' => [
218218
'link' => 'see',
219+
// 'property-read' => 'property',
220+
// 'property-write' => 'property',
219221
'type' => 'var',
220222
],
221223
],

baselines/loader.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# total 6 errors
1+
# total 7 errors
22

33
includes:
44
- assign.propertyType.neon
55
- callable.nonCallable.neon
66
- complexity.functionLike.neon
77
- disallowed.function.neon
88
- new.static.neon
9+
- property.notFound.neon
910
- typePerfect.narrowPublicClassMethodParamType.neon

baselines/property.notFound.neon

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# total 1 error
2+
3+
parameters:
4+
ignoreErrors:
5+
-
6+
message: '#^Access to an undefined property Composer\\IO\\IOInterface\:\:\$output\.$#'
7+
count: 1
8+
path: ../src/Support/ComposerScripts.php

0 commit comments

Comments
 (0)