@@ -470,17 +470,6 @@ jobs:
470
470
export PATH="$PATH:$HOME/.composer/vendor/bin"
471
471
php-coveralls --coverage_clover=build/logs/behat/clover.xml
472
472
continue-on-error : true
473
- - name : Export OpenAPI documents
474
- run : |
475
- mkdir -p build/out/openapi
476
- tests/Fixtures/app/console api:openapi:export --yaml -o build/out/openapi/openapi_v3.yaml
477
- - name : Setup node
478
- uses : actions/setup-node@v4
479
- with :
480
- node-version : ' 22'
481
- - name : Validate OpenAPI documents
482
- run : |
483
- npx @quobix/vacuum lint build/out/openapi/openapi_v3.yaml
484
473
485
474
postgresql :
486
475
name : Behat (PHP ${{ matrix.php }}) (PostgreSQL)
@@ -1263,14 +1252,50 @@ jobs:
1263
1252
name : behat-logs-php${{ matrix.php }}
1264
1253
path : build/logs/behat
1265
1254
continue-on-error : true
1266
- - name : Export OpenAPI documents
1267
- run : |
1268
- mkdir -p build/out/openapi
1269
- tests/Fixtures/app/console api:openapi:export --yaml -o build/out/openapi/openapi_v3.yaml
1255
+
1256
+ openapi :
1257
+ name : OpenAPI
1258
+ runs-on : ubuntu-latest
1259
+ timeout-minutes : 20
1260
+ strategy :
1261
+ matrix :
1262
+ php :
1263
+ - ' 8.4'
1264
+ fail-fast : false
1265
+ steps :
1266
+ - name : Checkout
1267
+ uses : actions/checkout@v4
1268
+ - name : Setup PHP
1269
+ uses : shivammathur/setup-php@v2
1270
+ with :
1271
+ php-version : ${{ matrix.php }}
1272
+ tools : pecl, composer
1273
+ extensions : intl, bcmath, curl, openssl, mbstring, pdo_sqlite, mongodb
1274
+ ini-values : memory_limit=-1
1270
1275
- name : Setup node
1271
1276
uses : actions/setup-node@v4
1272
1277
with :
1273
1278
node-version : ' 22'
1279
+ - name : Get composer cache directory
1280
+ id : composercache
1281
+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
1282
+ - name : Cache dependencies
1283
+ uses : actions/cache@v4
1284
+ with :
1285
+ path : ${{ steps.composercache.outputs.dir }}
1286
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
1287
+ restore-keys : ${{ runner.os }}-composer-
1288
+ - name : Update project dependencies
1289
+ run : |
1290
+ composer global require soyuka/pmu
1291
+ composer global config allow-plugins.soyuka/pmu true --no-interaction
1292
+ composer global link .
1293
+ - name : Clear test app cache
1294
+ run : tests/Fixtures/app/console cache:clear --ansi
1295
+ - name : Export OpenAPI documents
1296
+ run : |
1297
+ mkdir -p build/out/openapi
1298
+ tests/Fixtures/app/console api:openapi:export --yaml -o build/out/openapi/openapi_v3.yaml
1274
1299
- name : Validate OpenAPI documents
1275
1300
run : |
1276
1301
npx @quobix/vacuum lint build/out/openapi/openapi_v3.yaml
0 commit comments