Skip to content

Commit ab3888e

Browse files
committed
ci: remove grumphp
1 parent f62ad40 commit ab3888e

3 files changed

Lines changed: 12 additions & 51 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ jobs:
1818
php-version: '7.4'
1919
- name: Install dependencies
2020
run: composer update ${{ matrix.dependency-version }} --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist
21-
- name: Run code quality checks
22-
run: vendor/bin/grumphp run --testsuite=code_quality
21+
- name: Run PHP CS Fixer
22+
run: composer php-cs-fixer
23+
- name: Run PHPStan
24+
run: composer phpstan
2325
php-test:
2426
name: Run tests on ${{ matrix.php }}
2527
runs-on: ubuntu-latest
@@ -39,9 +41,7 @@ jobs:
3941
uses: shivammathur/setup-php@v2
4042
with:
4143
php-version: ${{ matrix.php }}
42-
- name: Remove GrumPHP
43-
run: composer remove --dev phpro/grumphp
4444
- name: Install dependencies
4545
run: composer update ${{ matrix.dependency-version }} --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist
4646
- name: Run unit tests
47-
run: vendor/bin/phpunit --testsuite unit
47+
run: composer tests:unit

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,10 @@
2121
"fakerphp/faker": "^1.17",
2222
"friendsofphp/php-cs-fixer": "^3.0",
2323
"php-mock/php-mock-phpunit": "^2.7",
24-
"php-parallel-lint/php-parallel-lint": "^1.1",
25-
"phpro/grumphp": "^1.0",
2624
"phpstan/phpstan": "^1.0",
27-
"phpunit/phpunit": "^9.3",
28-
"sebastian/phpcpd": "^6.0.3"
25+
"phpunit/phpunit": "^9.3"
2926
},
3027
"config": {
31-
"allow-plugins": {
32-
"phpro/grumphp": true
33-
},
3428
"optimize-autoloader": true,
3529
"preferred-install": "dist",
3630
"sort-packages": true
@@ -44,5 +38,11 @@
4438
"psr-4": {
4539
"Ymir\\Sdk\\Tests\\": "tests"
4640
}
41+
},
42+
"scripts": {
43+
"php-cs-fixer": "php-cs-fixer fix --dry-run --allow-risky=yes",
44+
"php-cs-fixer:fix": "php-cs-fixer fix --allow-risky=yes",
45+
"phpstan": "phpstan analyze --ansi",
46+
"tests:unit": "phpunit --testsuite unit"
4747
}
4848
}

grumphp.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)