Skip to content

Commit fa998b6

Browse files
committed
Sync with template
1 parent 8763a32 commit fa998b6

File tree

13 files changed

+3203
-1687
lines changed

13 files changed

+3203
-1687
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,9 @@
1-
name: Check
2-
31
on:
42
push:
53
branches: ['main', '*.*.x']
64
pull_request: ~
75

86
jobs:
9-
composer:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
- uses: shivammathur/setup-php@v2
14-
with:
15-
php-version: 8.1
16-
tools: composer:v2
17-
coverage: none
18-
- uses: ramsey/composer-install@v3
19-
with:
20-
composer-options: --optimize-autoloader
21-
- run: composer validate
22-
- run: composer normalize --dry-run
23-
- run: composer check-require
24-
- run: composer check-unused
25-
26-
lint:
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@v4
30-
- uses: shivammathur/setup-php@v2
31-
with:
32-
php-version: 8.1
33-
tools: composer:v2
34-
coverage: none
35-
- uses: ramsey/composer-install@v3
36-
with:
37-
composer-options: --optimize-autoloader
38-
- run: composer fixcs -- --dry-run --format=checkstyle
39-
40-
psalm:
41-
runs-on: ubuntu-latest
42-
strategy:
43-
matrix:
44-
dependency-versions: [locked, lowest, highest]
45-
steps:
46-
- uses: actions/checkout@v4
47-
- uses: shivammathur/setup-php@v2
48-
with:
49-
php-version: 8.1
50-
tools: composer:v2
51-
coverage: none
52-
- uses: ramsey/composer-install@v3
53-
with:
54-
composer-options: --optimize-autoloader
55-
dependency-versions: ${{ matrix.dependency-versions }}
56-
- run: composer psalm -- --stats --output-format=github ${{ matrix.dependency-versions == 'locked' && '--shepherd' || '' }}
57-
58-
test:
59-
runs-on: ubuntu-latest
60-
strategy:
61-
matrix:
62-
php: [8.1, 8.2, 8.3]
63-
dependency-versions: [locked, lowest, highest]
64-
steps:
65-
- uses: actions/checkout@v4
66-
- uses: shivammathur/setup-php@v2
67-
with:
68-
php-version: ${{ matrix.php }}
69-
ini-file: development
70-
tools: composer:v2
71-
coverage: ${{ matrix.php == '8.1' && matrix.dependency-versions == 'locked' && 'pcov' || '' }}
72-
- uses: ramsey/composer-install@v3
73-
with:
74-
composer-options: --optimize-autoloader
75-
dependency-versions: ${{ matrix.dependency-versions }}
76-
- run: composer test -- --colors=always --coverage-clover coverage.xml
77-
- if: ${{ matrix.php == '8.1' && matrix.dependency-versions == 'locked' }}
78-
uses: codecov/codecov-action@v4
79-
env:
80-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
81-
82-
infection:
83-
runs-on: ubuntu-latest
84-
steps:
85-
- uses: actions/checkout@v4
86-
- uses: shivammathur/setup-php@v2
87-
with:
88-
php-version: 8.1
89-
ini-file: development
90-
tools: composer:v2
91-
- uses: ramsey/composer-install@v3
92-
with:
93-
composer-options: --optimize-autoloader
94-
- run: composer infection
95-
env:
96-
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
7+
check:
8+
uses: typhoon-php/.github/.github/workflows/check.yml@main
9+
secrets: inherit

composer.json

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@
2020
"require-dev": {
2121
"bamarni/composer-bin-plugin": "^1.8.2",
2222
"dragon-code/benchmark": "^2.6",
23-
"ergebnis/composer-normalize": "^2.43.0",
24-
"friendsofphp/php-cs-fixer": "^3.64.0",
25-
"infection/infection": "^0.29.6",
26-
"phpstan/phpstan": "^1.12.2",
27-
"phpunit/phpunit": "^10.5.32",
23+
"ergebnis/composer-normalize": "^2.45.0",
24+
"friendsofphp/php-cs-fixer": "^3.65.0",
25+
"phpstan/phpstan": "^1.12.13",
26+
"phpunit/phpunit": "^10.5.40",
2827
"phpyh/coding-standard": "^2.6.2",
29-
"symfony/var-dumper": "^6.4.11 || ^7.1.3"
28+
"symfony/var-dumper": "^6.4.15 || ^7.1.3"
3029
},
3130
"autoload": {
3231
"psr-4": {
@@ -44,9 +43,9 @@
4443
"config": {
4544
"allow-plugins": {
4645
"bamarni/composer-bin-plugin": true,
47-
"ergebnis/composer-normalize": true,
48-
"infection/extension-installer": true
46+
"ergebnis/composer-normalize": true
4947
},
48+
"bump-after-update": "dev",
5049
"platform": {
5150
"php": "8.1"
5251
},
@@ -60,14 +59,10 @@
6059
}
6160
},
6261
"scripts": {
63-
"bump-dev": [
64-
"@composer bump --dev-only",
65-
"@composer bin all bump --dev-only"
66-
],
6762
"check-require": "tools/composer-require-checker/vendor/bin/composer-require-checker",
6863
"check-unused": "tools/composer-unused/vendor/bin/composer-unused",
69-
"fixcs": "php-cs-fixer fix --diff",
70-
"infection": "infection --show-mutations",
64+
"fixcs": "php-cs-fixer fix --diff --verbose",
65+
"infection": "tools/infection/vendor/bin/infection --show-mutations",
7166
"pre-command-run": "mkdir -p var",
7267
"psalm": "tools/psalm/vendor/bin/psalm --show-info --no-diff --no-cache",
7368
"test": "phpunit"

0 commit comments

Comments
 (0)