@@ -266,7 +266,7 @@ jobs:
266
266
working-directory : src/${{ matrix.component }}
267
267
run : |
268
268
composer update
269
- vendor/bin/simple- phpunit --log-junit "build/logs/phpunit/junit.xml" ${{ matrix.coverage && '--coverage-clover build/logs/phpunit/clover.xml' || '' }}
269
+ vendor/bin/phpunit --log-junit "build/logs/phpunit/junit.xml" ${{ matrix.coverage && '--coverage-clover build/logs/phpunit/clover.xml' || '' }}
270
270
- name : Upload test artifacts
271
271
if : always()
272
272
uses : actions/upload-artifact@v3
@@ -1111,6 +1111,8 @@ jobs:
1111
1111
run : vendor/bin/simple-phpunit --version
1112
1112
- name : Clear test app cache
1113
1113
run : tests/Fixtures/app/console cache:clear --ansi
1114
+ - name : Use legacy ignored deprecations
1115
+ run : cp tests/.ignored-deprecations-legacy-events tests/.ignored-deprecations
1114
1116
- name : Run PHPUnit tests
1115
1117
run : |
1116
1118
mkdir -p build/logs/phpunit
@@ -1213,3 +1215,72 @@ jobs:
1213
1215
name : openapi-docs-php${{ matrix.php }}
1214
1216
path : build/out/openapi
1215
1217
continue-on-error : true
1218
+
1219
+ behat_listeners :
1220
+ name : Behat event listeners (PHP ${{ matrix.php }})
1221
+ env :
1222
+ USE_SYMFONY_LISTENERS : 1
1223
+ runs-on : ubuntu-latest
1224
+ timeout-minutes : 20
1225
+ strategy :
1226
+ matrix :
1227
+ php :
1228
+ - ' 8.3'
1229
+ fail-fast : false
1230
+ steps :
1231
+ - name : Checkout
1232
+ uses : actions/checkout@v3
1233
+ - name : Setup PHP
1234
+ uses : shivammathur/setup-php@v2
1235
+ with :
1236
+ php-version : ${{ matrix.php }}
1237
+ tools : pecl, composer
1238
+ extensions : intl, bcmath, curl, openssl, mbstring, pdo_sqlite
1239
+ coverage : pcov
1240
+ ini-values : memory_limit=-1
1241
+ - name : Get composer cache directory
1242
+ id : composercache
1243
+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
1244
+ - name : Cache dependencies
1245
+ uses : actions/cache@v3
1246
+ with :
1247
+ path : ${{ steps.composercache.outputs.dir }}
1248
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
1249
+ restore-keys : ${{ runner.os }}-composer-
1250
+ - name : Update project dependencies
1251
+ run : composer update --no-interaction --no-progress --ansi
1252
+ - name : Install PHPUnit
1253
+ run : vendor/bin/simple-phpunit --version
1254
+ - name : Clear test app cache
1255
+ run : tests/Fixtures/app/console cache:clear --ansi
1256
+ - name : Run Behat tests (PHP 8)
1257
+ run : |
1258
+ mkdir -p build/logs/behat
1259
+ vendor/bin/behat --out=std --format=progress --format=junit --out=build/logs/behat/junit --profile=symfony_listeners --no-interaction
1260
+ - name : Upload test artifacts
1261
+ if : always()
1262
+ uses : actions/upload-artifact@v3
1263
+ with :
1264
+ name : behat-logs-php${{ matrix.php }}
1265
+ path : build/logs/behat
1266
+ continue-on-error : true
1267
+ - name : Export OpenAPI documents
1268
+ run : |
1269
+ mkdir -p build/out/openapi
1270
+ tests/Fixtures/app/console api:openapi:export -o build/out/openapi/openapi_v3.json
1271
+ tests/Fixtures/app/console api:openapi:export --yaml -o build/out/openapi/openapi_v3.yaml
1272
+ - name : Setup node
1273
+ uses : actions/setup-node@v3
1274
+ with :
1275
+ node-version : ' 14'
1276
+ - name : Validate OpenAPI documents
1277
+ run : |
1278
+ npx git+https://github.com/soyuka/swagger-cli#master validate build/out/openapi/openapi_v3.json
1279
+ npx git+https://github.com/soyuka/swagger-cli#master validate build/out/openapi/openapi_v3.yaml
1280
+ - name : Upload OpenAPI artifacts
1281
+ if : always()
1282
+ uses : actions/upload-artifact@v3
1283
+ with :
1284
+ name : openapi-docs-php${{ matrix.php }}
1285
+ path : build/out/openapi
1286
+ continue-on-error : true
0 commit comments