Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
composer-options: ${{ inputs.COMPOSER_ARGS }}

- name: Run PHP_CodeSniffer
run: ./vendor/bin/phpcs ${{ inputs.PHPCS_ARGS }}
run: ./$(composer config bin-dir)/phpcs ${{ inputs.PHPCS_ARGS }}

- name: Annotate PHP_CodeSniffer report
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ jobs:
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
run: |
cd deployment
./vendor/bin/dep deploy ${{ inputs.ENVIRONMENT }} -${{ inputs.VERBOSITY}}
./$(composer config bin-dir)/dep deploy ${{ inputs.ENVIRONMENT }} -${{ inputs.VERBOSITY}}
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ jobs:

- name: Run Psalm
if: ${{ hashFiles('psalm.xml', 'psalm.xml.dist') != '' }}
run: ./vendor/bin/psalm --php-version="${{ inputs.PHP_VERSION }}" ${{ inputs.PSALM_ARGS }}
run: ./$(composer config bin-dir)/psalm --php-version="${{ inputs.PHP_VERSION }}" ${{ inputs.PSALM_ARGS }}

- name: Run PHPStan
if: ${{ hashFiles('phpstan.dist.neon', 'phpstan.neon', 'phpstan.neon.dist') != '' }}
run: ./vendor/bin/phpstan ${{ inputs.PHPSTAN_ARGS }}
run: ./$(composer config bin-dir)/phpstan ${{ inputs.PHPSTAN_ARGS }}
2 changes: 1 addition & 1 deletion .github/workflows/tests-unit-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ jobs:
composer-options: ${{ inputs.COMPOSER_ARGS }}

- name: Run PHPUnit
run: ./vendor/bin/phpunit ${{ inputs.PHPUNIT_ARGS }}
run: ./$(composer config bin-dir)/phpunit ${{ inputs.PHPUNIT_ARGS }}
8 changes: 4 additions & 4 deletions docs/php.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Coding standards analysis

This workflow runs [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer). It does so by
executing the binary in the `./vendor/bin/` folder.
executing the binary resolved via `composer config bin-dir`.

**Simplest possible example:**

Expand Down Expand Up @@ -64,7 +64,7 @@ versions.

This workflow runs either [Psalm](https://psalm.dev/) or [PHPStan](https://phpstan.org/), or both, based on the existence of a supported configuration file in your repository root folder.

It does so by executing the binary in the `./vendor/bin/` folder.
It does so by executing the binary resolved via `composer config bin-dir`.

**Supported configuration files:**

Expand Down Expand Up @@ -128,8 +128,8 @@ with multiple PHP versions, use the [Lint PHP](#lint-php) workflow.

## Unit tests PHP

This workflow runs [PHPUnit](https://phpunit.de/). It does so by executing the binary in the
`./vendor/bin/` folder.
This workflow runs [PHPUnit](https://phpunit.de/). It does so by executing the binary resolved via
`composer config bin-dir`.

**Simplest possible example:**

Expand Down
Loading