40
40
uses : docker://webfactory/composer-require-checker:3.2.0
41
41
42
42
tests :
43
- name : Tests / PHP ${{ matrix.php-version }}
43
+ name : Tests / PHP ${{ matrix.php-version }} / Symfony ${{ matrix.symfony-version }}
44
44
runs-on : ubuntu-latest
45
45
strategy :
46
46
fail-fast : true
@@ -89,23 +89,30 @@ jobs:
89
89
symfony/routing:^${{ matrix.symfony-version }} \
90
90
&& make build
91
91
92
- - name : Test
93
- run : make test-unit && make test-functional
92
+ - name : Unit tests
93
+ run : make test-unit
94
94
95
95
# See the reports at https://codecov.io/gh/yoanm/symfony-jsonrpc-http-server
96
96
- name : Upload unit tests coverage to codecov
97
97
uses : codecov/codecov-action@v2
98
98
with :
99
- file : " build/coverage/clover-unit.xml"
99
+ file : " build/coverage-phpunit /clover-unit.xml"
100
100
name : " unit-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
101
- flags : " unit-tests,php-${{ matrix.php-version }},sf-^ ${{ matrix.symfony-version }}"
101
+ flags : " unit-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}"
102
102
fail_ci_if_error : true
103
- - name : Upload unit tests coverage to codecov
103
+
104
+ - name : Functional tests
105
+ run : make test-functional
106
+
107
+ - name : DEBUG
108
+ run : ls -ail build/coverage-phpunit/clover-functional.xml build/coverage-behat/clover.xml
109
+
110
+ - name : Upload functional tests coverage to codecov
104
111
uses : codecov/codecov-action@v2
105
112
with :
106
- file : " build/coverage/clover-functional.xml,build/behat- coverage/clover.xml"
113
+ file : " build/coverage-phpunit /clover-functional.xml,build/coverage-behat /clover.xml"
107
114
name : " functional-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
108
- flags : " functional-tests,php-${{ matrix.php-version }},sf-^ ${{ matrix.symfony-version }}"
115
+ flags : " functional-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}"
109
116
fail_ci_if_error : true
110
117
111
118
nightly-tests :
@@ -138,6 +145,7 @@ jobs:
138
145
update : true
139
146
140
147
- name : Setup cache
148
+ continue-on-error : true
141
149
id : cache
142
150
uses : actions/cache@v2
143
151
with :
@@ -148,6 +156,7 @@ jobs:
148
156
key : ${{ env.CACHE_VERSION }}-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ hashFiles('composer.json') }}
149
157
150
158
- name : Build
159
+ continue-on-error : true
151
160
run : |
152
161
composer require \
153
162
symfony/http-foundation:^${{ matrix.symfony-version }} \
@@ -158,21 +167,28 @@ jobs:
158
167
symfony/routing:^${{ matrix.symfony-version }} \
159
168
&& make build
160
169
161
- - name : Test
162
- run : make test-unit && make test-functional
170
+ - name : Unit tests
171
+ continue-on-error : true
172
+ run : make test-unit
163
173
164
174
# See the reports at https://codecov.io/gh/yoanm/symfony-jsonrpc-http-server
165
175
- name : Upload unit tests coverage to codecov
166
176
uses : codecov/codecov-action@v2
177
+ continue-on-error : true
167
178
with :
168
- file : " build/coverage/clover-unit.xml"
179
+ file : " build/coverage-phpunit /clover-unit.xml"
169
180
name : " unit-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
170
- flags : " unit-tests,php-${{ matrix.php-version }},sf-^ ${{ matrix.symfony-version }}"
181
+ flags : " nightly, unit-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}"
171
182
fail_ci_if_error : false
172
- - name : Upload unit tests coverage to codecov
183
+
184
+ - name : Functional tests
185
+ run : make test-functional
186
+
187
+ - name : Upload functional tests coverage to codecov
173
188
uses : codecov/codecov-action@v2
189
+ continue-on-error : true
174
190
with :
175
- file : " build/coverage/clover-functional.xml,build/behat- coverage/clover.xml"
191
+ file : " build/coverage-phpunit /clover-functional.xml,build/coverage-behat /clover.xml"
176
192
name : " functional-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
177
- flags : " functional-tests,php-${{ matrix.php-version }},sf-^ ${{ matrix.symfony-version }}"
193
+ flags : " nightly, functional-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}"
178
194
fail_ci_if_error : false
0 commit comments