Skip to content

Commit e661196

Browse files
committed
Add tool composer unused
1 parent cc388fd commit e661196

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
- uses: shivammathur/setup-php@v2
1616
with:
1717
php-version: 8.4
18-
tools: composer-normalize, composer-require-checker
18+
tools: composer-normalize, composer-require-checker, composer-unused
1919
- uses: ramsey/composer-install@v3
2020
- run: composer validate --no-ansi --strict composer.json
2121
- run: composer-normalize --dry-run
22+
- run: composer-unused
2223
- run: composer-require-checker check
2324
coding-guidelines:
2425
name: Coding Guidelines
@@ -99,6 +100,7 @@ jobs:
99100
php-version: 8.4
100101
tools: infection
101102
- uses: ramsey/composer-install@v3
102-
- run: infection --min-msi=65 --min-covered-msi=70 --threads=4
103+
- run: |
104+
infection --min-msi=65 --min-covered-msi=70 --threads=4 "--threads=$(nproc)"
103105
env:
104106
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
"require": {
1313
"php": ">=8.4",
1414
"ext-bcmath": "*",
15-
"ext-intl": "*",
1615
"ext-mbstring": "*",
1716
"doctrine/dbal": "^4.2.3",
18-
"jetbrains/phpstorm-attributes": "^1.2",
1917
"symfony/config": "^7.1",
2018
"symfony/dependency-injection": "^7.1",
2119
"symfony/form": "^7.1",
2220
"symfony/http-kernel": "^7.1",
23-
"symfony/intl": "^7.1",
2421
"symfony/options-resolver": "^7.1"
2522
},
2623
"require-dev": {

scripts/ci.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ symfony composer validate --no-ansi --strict composer.json
1515

1616
kyx composer-normalize --dry-run
1717
kyx composer-require-checker check
18-
kyx php-cs-fixer fix --dry-run --show-progress=dots --using-cache=no --verbose
18+
kyx composer-unused
19+
FORCED_PHP_VERSION=8.3 kyx php-cs-fixer fix --dry-run --show-progress=dots --using-cache=no --verbose
1920
kyx phpstan analyse --memory-limit=512M --ansi --no-progress --error-format=table
2021
vendor/bin/phpunit
21-
kyx infection --min-msi=65 --min-covered-msi=70 --threads=4
22+
kyx infection "-j$(nproc)"
2223

2324
popd >/dev/null

scripts/fix.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ if [ ! -d "vendor" ]; then
1111
symfony composer update --no-interaction --no-progress --ansi
1212
fi
1313

14+
symfony composer update
1415
kyx composer-normalize
15-
kyx php-cs-fixer fix --show-progress=dots --using-cache=no --verbose
16+
FORCED_PHP_VERSION=8.3 kyx php-cs-fixer fix --show-progress=dots --using-cache=no --verbose
1617

1718
popd >/dev/null

0 commit comments

Comments
 (0)