Skip to content

Commit 1437d1e

Browse files
committed
ci: remove grumphp
1 parent a6fd81b commit 1437d1e

6 files changed

Lines changed: 75 additions & 1717 deletions

File tree

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
.gitattributes export-ignore
77
.gitignore export-ignore
88
.php_cs export-ignore
9-
grumphp.yml export-ignore
109
Makefile export-ignore
1110
phpmd.xml export-ignore
1211
phpstan.neon export-ignore

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ jobs:
2222
php-version: '7.4'
2323
- name: Install dependencies
2424
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist
25-
- name: Run code quality checks
26-
run: vendor/bin/grumphp run --testsuite=code_quality
25+
- name: Run PHP CS Fixer
26+
run: composer php-cs-fixer
27+
- name: Run PHPStan
28+
run: composer phpstan
2729
php-tests:
2830
name: Run tests on ${{ matrix.php-versions }}
2931
runs-on: ubuntu-latest
@@ -39,9 +41,7 @@ jobs:
3941
uses: shivammathur/setup-php@v2
4042
with:
4143
php-version: ${{ matrix.php-versions }}
42-
- name: Remove GrumPHP
43-
run: composer remove --dev phpro/grumphp
4444
- name: Install dependencies
4545
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist
4646
- name: Run unit tests
47-
run: vendor/bin/phpunit
47+
run: composer tests-unit

composer.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,10 @@
3737
"aws/aws-sdk-php": "^3.171",
3838
"friendsofphp/php-cs-fixer": "^3.0",
3939
"php-mock/php-mock-phpunit": "^2.6",
40-
"php-parallel-lint/php-parallel-lint": "^1.1",
41-
"phpmd/phpmd": "^2.7",
42-
"phpro/grumphp": "^1.0",
4340
"phpstan/phpstan": "^1.0",
4441
"phpunit/phpunit": "^8.0"
4542
},
4643
"config": {
47-
"allow-plugins": {
48-
"phpro/grumphp": true
49-
},
5044
"optimize-autoloader": true,
5145
"platform": {
5246
"php": "7.4.33"
@@ -65,5 +59,10 @@
6559
"Ymir\\Runtime\\Tests\\": "tests"
6660
}
6761
},
68-
"prefer-stable": true
62+
"prefer-stable": true,
63+
"scripts": {
64+
"php-cs-fixer": "php-cs-fixer fix --dry-run --allow-risky=yes",
65+
"phpstan": "phpstan analyze --ansi",
66+
"tests-unit": "phpunit --testsuite unit"
67+
}
6968
}

0 commit comments

Comments
 (0)