Skip to content

Commit 8d6385c

Browse files
committed
split openapi
1 parent faa147b commit 8d6385c

File tree

1 file changed

+40
-15
lines changed

1 file changed

+40
-15
lines changed

.github/workflows/ci.yml

+40-15
Original file line numberDiff line numberDiff line change
@@ -470,17 +470,6 @@ jobs:
470470
export PATH="$PATH:$HOME/.composer/vendor/bin"
471471
php-coveralls --coverage_clover=build/logs/behat/clover.xml
472472
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
484473

485474
postgresql:
486475
name: Behat (PHP ${{ matrix.php }}) (PostgreSQL)
@@ -1263,14 +1252,50 @@ jobs:
12631252
name: behat-logs-php${{ matrix.php }}
12641253
path: build/logs/behat
12651254
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
12701275
- name: Setup node
12711276
uses: actions/setup-node@v4
12721277
with:
12731278
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
12741299
- name: Validate OpenAPI documents
12751300
run: |
12761301
npx @quobix/vacuum lint build/out/openapi/openapi_v3.yaml

0 commit comments

Comments
 (0)