Skip to content

Commit 5305a63

Browse files
committed
ci(config): Update composer.json and configuration files
- Added phpro/grumphp-shim to composer.json for improved tooling. - Changed minimum-stability from stable to dev to allow for development dependencies. - Removed '__snapshots__/' exclusion from .php-cs-fixer and rector.php for better coverage. Signed-off-by: guanguans <[email protected]>
1 parent 59a703f commit 5305a63

20 files changed

+61
-27
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
/CHANGELOG.md export-ignore
5252
/composer-bump export-ignore
5353
/composer-dependency-analyser.php export-ignore
54-
/gitleaks-baseline.json export-ignore
5554
/monorepo-builder.php export-ignore
5655
/peck.json export-ignore
5756
/phpbench.json.dist export-ignore

.github/FUNDING.yml

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

3-
github: guanguans
4-
patreon: guanguans
3+
# github: guanguans
4+
# patreon: guanguans
55
custom: https://guanguans.github.io/sponsors

.github/dependabot.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ updates:
77
- package-ecosystem: "github-actions"
88
directory: "/"
99
schedule:
10-
interval: "monthly"
10+
interval: daily
11+
time: "21:00"
1112
labels:
1213
- "dependencies"
1314

1415
- package-ecosystem: "composer"
1516
directory: "/"
1617
schedule:
17-
interval: "monthly"
18+
interval: daily
19+
time: "21:00"
1820
labels:
1921
- "dependencies"

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
pull-requests: write
2121

2222
steps:
23-
- uses: actions/labeler@v5
23+
- uses: actions/labeler@v6
2424
with:
2525
repo-token: "${{ secrets.GITHUB_TOKEN }}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
restore-keys: ${{ runner.os }}-composer-
3737

3838
- name: Run composer install
39-
run: composer install --no-interaction --prefer-dist --ansi -v
39+
run: composer install --no-interaction --ansi -v
4040

4141
- name: Run php-cs-fixer
4242
run: composer php-cs-fixer:fix-dry-run

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
restore-keys: ${{ runner.os }}-composer-
3737

3838
- name: Run composer install
39-
run: composer install --no-interaction --prefer-dist --ansi -v
39+
run: composer install --no-interaction --ansi -v
4040

4141
- name: Run phpstan
4242
run: composer phpstan:analyse

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
restore-keys: ${{ runner.os }}-composer-
3737

3838
- name: Run composer install
39-
run: composer install --no-interaction --prefer-dist --ansi -v
39+
run: composer install --no-interaction --ansi -v
4040

4141
- name: Run rector
4242
run: composer rector:process-dry-run

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
pull-requests: write
2020

2121
steps:
22-
- uses: actions/stale@v9
22+
- uses: actions/stale@v10
2323
with:
2424
repo-token: ${{ secrets.GITHUB_TOKEN }}
2525
stale-issue-message: 'Stale issue message'

.github/workflows/tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
uses: shivammathur/setup-php@v2
2626
with:
2727
php-version: ${{ matrix.php }}
28-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, json, mbstring, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, sodium
2928
coverage: xdebug
29+
# extensions: amqp,apcu,brotli,igbinary,intl,mbstring,memcached,redis,relay,zstd,:php-psr
30+
env:
31+
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3032

3133
# - name: Get composer cache directory
3234
# id: composer-cache
@@ -42,7 +44,7 @@ jobs:
4244
# restore-keys: ${{ runner.os }}-composer-
4345

4446
- name: Install dependencies
45-
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --ansi -v
47+
run: composer update --${{ matrix.dependency-version }} --no-interaction --ansi -v
4648

4749
- name: Execute tests
4850
run: composer test:coverage

.php-cs-fixer.dist.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@
8383
'@PHPUnit10x0Migration:risky' => true,
8484
]))
8585
->withRules(Rules::fromArray([
86+
'align_multiline_comment' => [
87+
'comment_type' => 'phpdocs_only',
88+
],
8689
'attribute_empty_parentheses' => [
8790
'use_parentheses' => false,
8891
],
@@ -294,7 +297,6 @@
294297
Finder::create()
295298
->in(__DIR__)
296299
->exclude([
297-
'__snapshots__/',
298300
'Fixtures/',
299301
'vendor-bin/',
300302
])

0 commit comments

Comments
 (0)