File tree Expand file tree Collapse file tree 2 files changed +5
-18
lines changed Expand file tree Collapse file tree 2 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 94
94
id : phpunit_version
95
95
run : echo "VERSION=$(vendor/bin/phpunit --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> $GITHUB_OUTPUT
96
96
97
- - name : Run the unit tests (PHPUnit < 10)
98
- if : ${{ ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
97
+ - name : Run the unit tests
99
98
run : composer test
100
99
101
- - name : Run the unit tests (PHPUnit 10+)
102
- if : ${{ startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
103
- run : composer test10
104
-
105
100
- name : Stop proxy server
106
101
continue-on-error : true
107
102
run : |
Original file line number Diff line number Diff line change @@ -118,22 +118,14 @@ jobs:
118
118
id : phpunit_version
119
119
run : echo "VERSION=$(vendor/bin/phpunit --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> $GITHUB_OUTPUT
120
120
121
- - name : Run the unit tests, no code coverage (PHPUnit < 10)
122
- if : ${{ matrix.coverage == false && ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
121
+ - name : Run the unit tests, no code coverage
122
+ if : ${{ matrix.coverage == false }}
123
123
run : composer test
124
124
125
- - name : Run the unit tests, no code coverage (PHPUnit 10+)
126
- if : ${{ matrix.coverage == false && startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
127
- run : composer test10
128
-
129
- - name : Run the unit tests with code coverage (PHPUnit < 10)
130
- if : ${{ matrix.coverage == true && ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
125
+ - name : Run the unit tests with code coverage
126
+ if : ${{ matrix.coverage == true }}
131
127
run : composer coverage -- --coverage-clover clover.xml
132
128
133
- - name : Run the unit tests with code coverage (PHPUnit 10+)
134
- if : ${{ matrix.coverage == true && startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
135
- run : composer coverage10 -- --coverage-clover clover.xml
136
-
137
129
- name : Stop proxy server
138
130
continue-on-error : true
139
131
run : |
You can’t perform that action at this time.
0 commit comments