@@ -276,7 +276,9 @@ jobs:
276276 if : matrix.php == '8.2'
277277 run : composer require phpunit/phpunit:^11.5 --dev --with-all-dependencies
278278 - name : Clear test app cache
279- run : tests/Fixtures/app/console cache:clear --ansi
279+ run : |
280+ rm -Rf tests/Fixtures/app/var/cache/*
281+ tests/Fixtures/app/console cache:clear --ansi
280282 - name : Run PHPUnit tests
281283 run : vendor/bin/phpunit --log-junit build/logs/phpunit/junit.xml ${{ matrix.coverage && '--coverage-clover build/logs/phpunit/clover.xml' || '' }}
282284 - name : Upload test artifacts
@@ -495,7 +497,9 @@ jobs:
495497 if : matrix.php == '8.2'
496498 run : composer require phpunit/phpunit:^11.5 --dev --with-all-dependencies
497499 - name : Clear test app cache
498- run : tests/Fixtures/app/console cache:clear --ansi
500+ run : |
501+ rm -Rf tests/Fixtures/app/var/cache/*
502+ tests/Fixtures/app/console cache:clear --ansi
499503 - name : Run Behat tests (PHP ${{ matrix.php }})
500504 run : |
501505 mkdir -p build/logs/behat
@@ -579,11 +583,15 @@ jobs:
579583 composer global config allow-plugins.soyuka/pmu true --no-interaction
580584 composer global link .
581585 - name : Clear test app cache
582- run : tests/Fixtures/app/console cache:clear --ansi
586+ run : |
587+ rm -Rf tests/Fixtures/app/var/cache/*
588+ tests/Fixtures/app/console cache:clear --ansi
583589 - name : Run PHPUnit tests
584590 run : vendor/bin/phpunit
585591 - name : Clear test app cache
586- run : tests/Fixtures/app/console cache:clear --ansi
592+ run : |
593+ rm -Rf tests/Fixtures/app/var/cache/*
594+ tests/Fixtures/app/console cache:clear --ansi
587595 - name : Run Behat tests
588596 run : |
589597 vendor/bin/behat --out=std --format=progress --profile=postgres --no-interaction -vv
@@ -634,11 +642,15 @@ jobs:
634642 composer global config allow-plugins.soyuka/pmu true --no-interaction
635643 composer global link .
636644 - name : Clear test app cache
637- run : tests/Fixtures/app/console cache:clear --ansi
645+ run : |
646+ rm -Rf tests/Fixtures/app/var/cache/*
647+ tests/Fixtures/app/console cache:clear --ansi
638648 - name : Run PHPUnit tests
639649 run : vendor/bin/phpunit
640650 - name : Clear test app cache
641- run : tests/Fixtures/app/console cache:clear --ansi
651+ run : |
652+ rm -Rf tests/Fixtures/app/var/cache/*
653+ tests/Fixtures/app/console cache:clear --ansi
642654 - name : Run Behat tests
643655 run : vendor/bin/behat --out=std --format=progress --profile=default --no-interaction --tags '~@!mysql'
644656
@@ -690,11 +702,15 @@ jobs:
690702 composer global link . --permanent
691703 composer require --dev doctrine/mongodb-odm-bundle
692704 - name : Clear test app cache
693- run : tests/Fixtures/app/console cache:clear --ansi
705+ run : |
706+ rm -Rf tests/Fixtures/app/var/cache/*
707+ tests/Fixtures/app/console cache:clear --ansi
694708 - name : Run PHPUnit tests
695709 run : vendor/bin/phpunit --log-junit build/logs/phpunit/junit.xml --coverage-clover build/logs/phpunit/clover.xml --exclude-group=orm
696710 - name : Clear test app cache
697- run : tests/Fixtures/app/console cache:clear --ansi
711+ run : |
712+ rm -Rf tests/Fixtures/app/var/cache/*
713+ tests/Fixtures/app/console cache:clear --ansi
698714 - name : Run Behat tests
699715 run : |
700716 mkdir -p build/logs/behat
@@ -782,7 +798,9 @@ jobs:
782798 composer global config allow-plugins.soyuka/pmu true --no-interaction
783799 composer global link .
784800 - name : Clear test app cache
785- run : tests/Fixtures/app/console cache:clear --ansi
801+ run : |
802+ rm -Rf tests/Fixtures/app/var/cache/*
803+ tests/Fixtures/app/console cache:clear --ansi
786804 - name : Run PHPUnit tests
787805 run : vendor/bin/phpunit --log-junit build/logs/phpunit/junit.xml --coverage-clover build/logs/phpunit/clover.xml --group mercure
788806 - name : Run Behat tests
@@ -884,7 +902,9 @@ jobs:
884902 composer update elasticsearch/elasticsearch --prefer-lowest
885903 fi
886904 - name : Clear test app cache
887- run : tests/Fixtures/app/console cache:clear --ansi
905+ run : |
906+ rm -Rf tests/Fixtures/app/var/cache/*
907+ tests/Fixtures/app/console cache:clear --ansi
888908 - name : Run Behat tests
889909 run : vendor/bin/behat --out=std --format=progress --profile=elasticsearch --no-interaction
890910
@@ -923,7 +943,9 @@ jobs:
923943 composer global config allow-plugins.soyuka/pmu true --no-interaction
924944 composer global link .
925945 - name : Clear test app cache
926- run : tests/Fixtures/app/console cache:clear --ansi
946+ run : |
947+ rm -Rf tests/Fixtures/app/var/cache/*
948+ tests/Fixtures/app/console cache:clear --ansi
927949 - name : Run PHPUnit tests
928950 run : vendor/bin/phpunit --fail-on-deprecation --display-deprecations
929951
@@ -966,7 +988,9 @@ jobs:
966988 composer global config allow-plugins.soyuka/pmu true --no-interaction
967989 composer global link .
968990 - name : Clear test app cache
969- run : tests/Fixtures/app/console cache:clear --ansi
991+ run : |
992+ rm -Rf tests/Fixtures/app/var/cache/*
993+ tests/Fixtures/app/console cache:clear --ansi
970994 - name : Run PHPUnit tests
971995 run : vendor/bin/phpunit --fail-on-deprecation
972996
@@ -1011,7 +1035,9 @@ jobs:
10111035 composer global config allow-plugins.soyuka/pmu true --no-interaction
10121036 composer global link .
10131037 - name : Clear test app cache
1014- run : tests/Fixtures/app/console cache:clear --ansi
1038+ run : |
1039+ rm -Rf tests/Fixtures/app/var/cache/*
1040+ tests/Fixtures/app/console cache:clear --ansi
10151041 - name : Run Behat tests
10161042 run : vendor/bin/behat --out=std --format=progress --profile=default --no-interaction
10171043
@@ -1063,7 +1089,9 @@ jobs:
10631089 composer global link . --working-directory='${{ steps.get-cwd.outputs.cwd }}'
10641090 - name : Clear test app cache
10651091 shell : bash
1066- run : tests/Fixtures/app/console cache:clear --ansi
1092+ run : |
1093+ rm -Rf tests/Fixtures/app/var/cache/*
1094+ tests/Fixtures/app/console cache:clear --ansi
10671095 - name : Run Behat tests
10681096 shell : bash
10691097 run : vendor/bin/behat --out=std --format=progress --profile=default --no-interaction
@@ -1106,7 +1134,9 @@ jobs:
11061134 composer global link . --permanent
11071135 composer update --prefer-lowest
11081136 - name : Clear test app cache
1109- run : tests/Fixtures/app/console cache:clear --ansi
1137+ run : |
1138+ rm -Rf tests/Fixtures/app/var/cache/*
1139+ tests/Fixtures/app/console cache:clear --ansi
11101140 - name : Run PHPUnit tests
11111141 run : vendor/bin/phpunit
11121142 env :
@@ -1152,7 +1182,9 @@ jobs:
11521182 composer global link . --permanent
11531183 composer update --prefer-lowest
11541184 - name : Clear test app cache
1155- run : tests/Fixtures/app/console cache:clear --ansi
1185+ run : |
1186+ rm -Rf tests/Fixtures/app/var/cache/*
1187+ tests/Fixtures/app/console cache:clear --ansi
11561188 - name : Run Behat tests
11571189 run : vendor/bin/behat --out=std --format=progress --profile=default --no-interaction --tags='~@disableForSymfonyLowest'
11581190
@@ -1199,7 +1231,9 @@ jobs:
11991231 composer global config allow-plugins.soyuka/pmu true --no-interaction
12001232 composer global link .
12011233 - name : Clear test app cache
1202- run : tests/Fixtures/app/console cache:clear --ansi
1234+ run : |
1235+ rm -Rf tests/Fixtures/app/var/cache/*
1236+ tests/Fixtures/app/console cache:clear --ansi
12031237 - name : Run PHPUnit tests
12041238 run : |
12051239 mkdir -p build/logs/phpunit
@@ -1271,7 +1305,9 @@ jobs:
12711305 composer global config allow-plugins.soyuka/pmu true --no-interaction
12721306 composer global link .
12731307 - name : Clear test app cache
1274- run : tests/Fixtures/app/console cache:clear --ansi
1308+ run : |
1309+ rm -Rf tests/Fixtures/app/var/cache/*
1310+ tests/Fixtures/app/console cache:clear --ansi
12751311 - name : Run Behat tests (PHP 8)
12761312 run : |
12771313 mkdir -p build/logs/behat
@@ -1322,7 +1358,9 @@ jobs:
13221358 composer global config allow-plugins.soyuka/pmu true --no-interaction
13231359 composer global link .
13241360 - name : Clear test app cache
1325- run : tests/Fixtures/app/console cache:clear --ansi
1361+ run : |
1362+ rm -Rf tests/Fixtures/app/var/cache/*
1363+ tests/Fixtures/app/console cache:clear --ansi
13261364 - name : Export OpenAPI documents
13271365 run : |
13281366 mkdir -p build/out/openapi
0 commit comments