Skip to content

Commit b9596a1

Browse files
author
Mokhtar Tlili
committed
revert to composer script
1 parent 62b3a0e commit b9596a1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: shivammathur/setup-php@v2
2626
with:
2727
php-version: ${{ matrix.php }}
28-
tools: composer, phpspec, phpstan, phpunit
28+
tools: composer
2929
coverage: pcov
3030

3131
- name: Validate composer.json and composer.lock
@@ -44,7 +44,7 @@ jobs:
4444
run: composer install --prefer-dist --no-progress
4545

4646
- name: Quality Code
47-
run: phpstan analyse src tests
47+
run: composer run-script phpstan
4848

4949
- name: PHPUnit Tests
50-
run: phpunit tests
50+
run: composer run-script phpunit

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
}
4747
},
4848
"scripts": {
49-
"phpunit": "vendor/bin/phpunit tests",
49+
"phpunit": "vendor/bin/phpunit --coverage-text tests",
5050
"fix-cs": "vendor/bin/php-cs-fixer fix src/",
5151
"phpstan": "vendor/bin/phpstan analyse src tests"
5252
},

0 commit comments

Comments
 (0)