Skip to content

Commit d4cf63a

Browse files
committed
Use composer scripts on GitHub workflows
Signed-off-by: William Desportes <[email protected]>
1 parent 8fc323e commit d4cf63a

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/lint-and-analyse-php.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install dependencies
2929
run: composer install
3030
- name: Lint files
31-
run: ./vendor/bin/phpcs
31+
run: composer run phpcs
3232

3333
analyse-php:
3434
runs-on: ubuntu-latest
@@ -59,6 +59,6 @@ jobs:
5959
- name: Install dependencies
6060
run: composer install
6161
- name: Analyse files with PHPStan
62-
run: ./vendor/bin/phpstan analyse
62+
run: composer run phpstan
6363
- name: Analyse files with Psalm
64-
run: ./vendor/bin/psalm --shepherd
64+
run: composer run psalm -- --shepherd

.github/workflows/mutation-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ jobs:
5757
composer update --no-interaction --no-progress
5858
5959
- name: Collect coverage report
60-
run: |
61-
./vendor/bin/phpunit --stop-on-failure
60+
run: composer run phpunit -- --stop-on-failure
6261

6362
- name: Infection
6463
if: ${{ github.base_ref != '' }}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
if: ${{ matrix.php-version == '7.1' }}
5555
run: composer require phpmyadmin/motranslator:^3.0
5656
- name: Run php tests
57-
run: ./vendor/bin/phpunit
57+
run: composer run phpunit
5858
- name: Send coverage
5959
uses: codecov/codecov-action@v1
6060
- name: Send coverage to Scrutinizer

0 commit comments

Comments
 (0)