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