99 - ' **phpunit.xml.dist'
1010 - ' **psalm.xml'
1111 - ' **ruleset.xml'
12+ - ' **composer.json'
13+ pull_request :
14+ paths :
15+ - ' **workflows/quality-assurance-php.yml'
16+ - ' **.php'
17+ - ' **phpcs.xml.dist'
18+ - ' **phpunit.xml.dist'
19+ - ' **psalm.xml'
20+ - ' **ruleset.xml'
21+ - ' **composer.json'
1222 workflow_dispatch :
1323 inputs :
1424 jobs :
@@ -30,10 +40,13 @@ concurrency:
3040
3141jobs :
3242 lint-php :
33- uses : inpsyde/reusable-workflows/.github/workflows/lint-php.yml@main
3443 if : ${{ (github.event_name != 'workflow_dispatch') || ((github.event.inputs.jobs == 'Run all') || (github.event.inputs.jobs == 'Run lint only') || (github.event.inputs.jobs == 'Run static analysis')) }}
44+ uses : inpsyde/reusable-workflows/.github/workflows/lint-php.yml@main
45+ strategy :
46+ matrix :
47+ php-ver : [ '7.4', '8.0', '8.1', '8.2' ]
3548 with :
36- PHP_MATRIX : ' ["7.4", "8.0", "8.1", "8.2"] '
49+ PHP_VERSION : ${{ matrix.php-ver }}
3750 LINT_ARGS : ' -e php --colors --show-deprecated ./Inpsyde'
3851
3952 coding-standards-analysis-php :
@@ -43,10 +56,19 @@ jobs:
4356 static-code-analysis-php :
4457 if : ${{ (github.event_name != 'workflow_dispatch') || ((github.event.inputs.jobs == 'Run all') || (github.event.inputs.jobs == 'Run Psalm only') || (github.event.inputs.jobs == 'Run static analysis')) }}
4558 uses : inpsyde/reusable-workflows/.github/workflows/static-analysis-php.yml@main
59+ strategy :
60+ matrix :
61+ php-ver : [ '7.4', '8.0', '8.1', '8.2' ]
62+ with :
63+ PHP_VERSION : ${{ matrix.php-ver }}
64+ PSALM_ARGS : ${{ format("--no-suggestions --report-show-info=false --find-unused-psalm-suppress --no-diff --output-format={0}", ((github.event_name == 'pull_request') && 'github ') || 'compact') }}
4665
4766 tests-unit-php :
4867 if : ${{ (github.event_name != 'workflow_dispatch') || ((github.event.inputs.jobs == 'Run all') || (github.event.inputs.jobs == 'Run unit tests only')) }}
4968 uses : inpsyde/reusable-workflows/.github/workflows/tests-unit-php.yml@main
69+ strategy :
70+ matrix :
71+ php-ver : [ '7.4', '8.0', '8.1', '8.2' ]
5072 with :
51- PHP_MATRIX : ' ["7.4", "8.0", "8.1", "8.2"] '
73+ PHP_VERSION : ${{ matrix.php-ver }}
5274 PHPUNIT_ARGS : ' --no-coverage'
0 commit comments