@@ -211,6 +211,7 @@ jobs:
211211 --php-version ${{ matrix.phpVersion }}
212212
213213 - name : Create the fixtures for the tests
214+ id : fixtures
214215 run : >-
215216 if [ "${{matrix.database}}" = 'pgsql' ]; then PARAM=''; else PARAM='--use-db-dump'; fi &&
216217 cd .github/actions/run-tests &&
@@ -222,17 +223,35 @@ jobs:
222223 --http-server ${{ matrix.httpServer }}
223224 --php-version ${{ matrix.phpVersion }}
224225
225- - name : Run the tests
226+ - name : Run the unit tests
227+ if : ${{ !cancelled() && steps.fixtures.outcome == 'success' }}
226228 run : >-
227229 cd .github/actions/run-tests &&
228230 ./run-locally.py
229231 --run-unit-tests
232+ --extract-code-coverage
233+ --keep-code-coverage
234+ --install-composer-deps
235+
236+ - name : Run the integration tests
237+ if : ${{ !cancelled() && steps.fixtures.outcome == 'success' }}
238+ run : >-
239+ cd .github/actions/run-tests &&
240+ ./run-locally.py
230241 --run-integration-tests
242+ --extract-code-coverage
243+ --keep-code-coverage
244+ --install-composer-deps
245+
246+ - name : Run the migration tests
247+ if : ${{ !cancelled() && steps.fixtures.outcome == 'success' }}
248+ run : >-
249+ cd .github/actions/run-tests &&
250+ ./run-locally.py
231251 --run-migration-tests
232252 --extract-code-coverage
233253 --keep-code-coverage
234- --install-composer-deps;
235- echo "test_result=$?" >> $GITHUB_ENV
254+ --install-composer-deps
236255
237256 - name : Export the annotations of unit tests to github
238257 shell : bash
@@ -271,7 +290,7 @@ jobs:
271290 shell : bash
272291 run : >-
273292 mkdir /tmp/coverage &&
274- rsync -a .github/actions/run-tests/volumes/coverage/latest/ /tmp/coverage
293+ cp .github/actions/run-tests/volumes/coverage/run-*/coverage.*.xml /tmp/coverage
275294
276295 - name : Upload the code coverage report for codecov as artifacts
277296 if : steps.ncVersionRequirements.outputs.matchingVersion == 'true'
@@ -328,6 +347,7 @@ jobs:
328347 --php-version 8.5
329348
330349 - name : Create the fixtures for the tests
350+ id : fixtures
331351 run : >-
332352 cd .github/actions/run-tests &&
333353 ./run-locally.py
@@ -338,17 +358,35 @@ jobs:
338358 --php-version latest
339359 --install-untested
340360
341- - name : Run the tests
361+ - name : Run the unit tests
362+ if : ${{ !cancelled() && steps.fixtures.outcome == 'success' }}
342363 run : >-
343364 cd .github/actions/run-tests &&
344365 ./run-locally.py
345366 --run-unit-tests
367+ --extract-code-coverage
368+ --keep-code-coverage
369+ --install-composer-deps
370+
371+ - name : Run the integration tests
372+ if : ${{ !cancelled() && steps.fixtures.outcome == 'success' }}
373+ run : >-
374+ cd .github/actions/run-tests &&
375+ ./run-locally.py
346376 --run-integration-tests
377+ --extract-code-coverage
378+ --keep-code-coverage
379+ --install-composer-deps
380+
381+ - name : Run the migration tests
382+ if : ${{ !cancelled() && steps.fixtures.outcome == 'success' }}
383+ run : >-
384+ cd .github/actions/run-tests &&
385+ ./run-locally.py
347386 --run-migration-tests
348387 --extract-code-coverage
349388 --keep-code-coverage
350- --install-composer-deps;
351- echo "test_result=$?" >> $GITHUB_ENV
389+ --install-composer-deps
352390
353391 - name : Export the annotations of unit tests to github
354392 shell : bash
@@ -387,7 +425,7 @@ jobs:
387425 shell : bash
388426 run : >-
389427 mkdir /tmp/coverage &&
390- rsync -a .github/actions/run-tests/volumes/coverage/latest/ /tmp/coverage
428+ cp .github/actions/run-tests/volumes/coverage/run-*/coverage.*.xml /tmp/coverage
391429
392430 - name : Upload the code coverage report for codecov as artifacts
393431 uses : actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
0 commit comments