9
9
- ' **phpunit.xml.dist'
10
10
- ' **psalm.xml'
11
11
- ' **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'
12
22
workflow_dispatch :
13
23
inputs :
14
24
jobs :
@@ -30,10 +40,13 @@ concurrency:
30
40
31
41
jobs :
32
42
lint-php :
33
- uses : inpsyde/reusable-workflows/.github/workflows/lint-php.yml@main
34
43
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' ]
35
48
with :
36
- PHP_MATRIX : ' ["7.4", "8.0", "8.1", "8.2"] '
49
+ PHP_VERSION : ${{ matrix.php-ver }}
37
50
LINT_ARGS : ' -e php --colors --show-deprecated ./Inpsyde'
38
51
39
52
coding-standards-analysis-php :
@@ -43,10 +56,19 @@ jobs:
43
56
static-code-analysis-php :
44
57
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')) }}
45
58
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') }}
46
65
47
66
tests-unit-php :
48
67
if : ${{ (github.event_name != 'workflow_dispatch') || ((github.event.inputs.jobs == 'Run all') || (github.event.inputs.jobs == 'Run unit tests only')) }}
49
68
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' ]
50
72
with :
51
- PHP_MATRIX : ' ["7.4", "8.0", "8.1", "8.2"] '
73
+ PHP_VERSION : ${{ matrix.php-ver }}
52
74
PHPUNIT_ARGS : ' --no-coverage'
0 commit comments