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,23 @@ jobs:
89
89
symfony/routing:^${{ matrix.symfony-version }} \
90
90
&& make build
91
91
92
- - name : Test
92
+ - name : Tests
93
93
run : make test-unit && make test-functional
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
+ move_coverage_to_trash : true
104
+ - name : Upload functional tests coverage to codecov
104
105
uses : codecov/codecov-action@v2
105
106
with :
106
- file : " build/coverage/clover-functional.xml,build/behat-coverage/clover.xml"
107
107
name : " functional-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
108
- flags : " functional-tests,php-${{ matrix.php-version }},sf-^ ${{ matrix.symfony-version }}"
108
+ flags : " functional-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}+ "
109
109
fail_ci_if_error : true
110
110
111
111
nightly-tests :
@@ -138,6 +138,7 @@ jobs:
138
138
update : true
139
139
140
140
- name : Setup cache
141
+ continue-on-error : true
141
142
id : cache
142
143
uses : actions/cache@v2
143
144
with :
@@ -148,6 +149,7 @@ jobs:
148
149
key : ${{ env.CACHE_VERSION }}-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ hashFiles('composer.json') }}
149
150
150
151
- name : Build
152
+ continue-on-error : true
151
153
run : |
152
154
composer require \
153
155
symfony/http-foundation:^${{ matrix.symfony-version }} \
@@ -159,20 +161,23 @@ jobs:
159
161
&& make build
160
162
161
163
- name : Test
164
+ continue-on-error : true
162
165
run : make test-unit && make test-functional
163
166
164
167
# See the reports at https://codecov.io/gh/yoanm/symfony-jsonrpc-http-server
165
168
- name : Upload unit tests coverage to codecov
166
169
uses : codecov/codecov-action@v2
170
+ continue-on-error : true
167
171
with :
168
- file : " build/coverage/clover-unit.xml"
172
+ file : " build/coverage-phpunit /clover-unit.xml"
169
173
name : " unit-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
170
- flags : " unit-tests,php-${{ matrix.php-version }},sf-^ ${{ matrix.symfony-version }}"
174
+ flags : " nightly, unit-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}+ "
171
175
fail_ci_if_error : false
172
- - name : Upload unit tests coverage to codecov
176
+ move_coverage_to_trash : true
177
+ - name : Upload functional tests coverage to codecov
173
178
uses : codecov/codecov-action@v2
174
- with :
175
- file : " build/coverage/clover-functional.xml,build/behat- coverage/clover.xml"
179
+ continue-on-error : true
180
+ file : " build/coverage-phpunit /clover-functional.xml,build/coverage-behat /clover.xml"
176
181
name : " functional-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
177
- flags : " functional-tests,php-${{ matrix.php-version }},sf-^ ${{ matrix.symfony-version }}"
182
+ flags : " nightly, functional-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}+ "
178
183
fail_ci_if_error : false
0 commit comments