@@ -1127,6 +1127,8 @@ jobs:
1127
1127
run : vendor/bin/simple-phpunit --version
1128
1128
- name : Clear test app cache
1129
1129
run : tests/Fixtures/app/console cache:clear --ansi
1130
+ - name : Use legacy ignored deprecations
1131
+ run : cp tests/.ignored-deprecations-legacy-events tests/.ignored-deprecations
1130
1132
- name : Run PHPUnit tests
1131
1133
run : |
1132
1134
mkdir -p build/logs/phpunit
@@ -1229,3 +1231,72 @@ jobs:
1229
1231
name : openapi-docs-php${{ matrix.php }}
1230
1232
path : build/out/openapi
1231
1233
continue-on-error : true
1234
+
1235
+ behat_listeners :
1236
+ name : Behat event listeners (PHP ${{ matrix.php }})
1237
+ env :
1238
+ USE_SYMFONY_LISTENERS : 1
1239
+ runs-on : ubuntu-latest
1240
+ timeout-minutes : 20
1241
+ strategy :
1242
+ matrix :
1243
+ php :
1244
+ - ' 8.3'
1245
+ fail-fast : false
1246
+ steps :
1247
+ - name : Checkout
1248
+ uses : actions/checkout@v3
1249
+ - name : Setup PHP
1250
+ uses : shivammathur/setup-php@v2
1251
+ with :
1252
+ php-version : ${{ matrix.php }}
1253
+ tools : pecl, composer
1254
+ extensions : intl, bcmath, curl, openssl, mbstring, pdo_sqlite
1255
+ coverage : pcov
1256
+ ini-values : memory_limit=-1
1257
+ - name : Get composer cache directory
1258
+ id : composercache
1259
+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
1260
+ - name : Cache dependencies
1261
+ uses : actions/cache@v3
1262
+ with :
1263
+ path : ${{ steps.composercache.outputs.dir }}
1264
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
1265
+ restore-keys : ${{ runner.os }}-composer-
1266
+ - name : Update project dependencies
1267
+ run : composer update --no-interaction --no-progress --ansi
1268
+ - name : Install PHPUnit
1269
+ run : vendor/bin/simple-phpunit --version
1270
+ - name : Clear test app cache
1271
+ run : tests/Fixtures/app/console cache:clear --ansi
1272
+ - name : Run Behat tests (PHP 8)
1273
+ run : |
1274
+ mkdir -p build/logs/behat
1275
+ vendor/bin/behat --out=std --format=progress --format=junit --out=build/logs/behat/junit --profile=symfony_listeners --no-interaction
1276
+ - name : Upload test artifacts
1277
+ if : always()
1278
+ uses : actions/upload-artifact@v3
1279
+ with :
1280
+ name : behat-logs-php${{ matrix.php }}
1281
+ path : build/logs/behat
1282
+ continue-on-error : true
1283
+ - name : Export OpenAPI documents
1284
+ run : |
1285
+ mkdir -p build/out/openapi
1286
+ tests/Fixtures/app/console api:openapi:export -o build/out/openapi/openapi_v3.json
1287
+ tests/Fixtures/app/console api:openapi:export --yaml -o build/out/openapi/openapi_v3.yaml
1288
+ - name : Setup node
1289
+ uses : actions/setup-node@v3
1290
+ with :
1291
+ node-version : ' 14'
1292
+ - name : Validate OpenAPI documents
1293
+ run : |
1294
+ npx git+https://github.com/soyuka/swagger-cli#master validate build/out/openapi/openapi_v3.json
1295
+ npx git+https://github.com/soyuka/swagger-cli#master validate build/out/openapi/openapi_v3.yaml
1296
+ - name : Upload OpenAPI artifacts
1297
+ if : always()
1298
+ uses : actions/upload-artifact@v3
1299
+ with :
1300
+ name : openapi-docs-php${{ matrix.php }}
1301
+ path : build/out/openapi
1302
+ continue-on-error : true
0 commit comments