Skip to content

Commit 490bf30

Browse files
chore: use api-platform/symfony:^3.4 instead of api-platform/core (#440)
1 parent 73efe13 commit 490bf30

File tree

7 files changed

+1372
-417
lines changed

7 files changed

+1372
-417
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- \d+.\d+
88
pull_request: ~
99
workflow_dispatch: ~
10-
# Check api-platform/core:dev-main every sunday at 02:00
10+
# Check api-platform packages with dev every sunday at 02:00
1111
schedule:
1212
- cron: 0 2 * * 0
1313

@@ -54,7 +54,9 @@ jobs:
5454
-
5555
name: Update API Platform to latest
5656
if: ${{ github.event_name == 'schedule' }}
57-
run: docker compose exec php composer require api-platform/core:dev-main
57+
run: |
58+
docker compose exec php composer config minimum-stability dev
59+
docker compose exec php composer update "api-platform/*"
5860
-
5961
name: Check HTTP reachability
6062
run: curl -v --fail-with-body http://localhost
@@ -154,7 +156,9 @@ jobs:
154156
-
155157
name: Update API Platform to latest
156158
if: ${{ github.event_name == 'schedule' }}
157-
run: docker compose exec php composer require api-platform/core:dev-main
159+
run: |
160+
docker compose exec php composer config minimum-stability dev
161+
docker compose exec php composer update "api-platform/*"
158162
-
159163
name: Load Fixtures
160164
run: docker compose run --rm php bin/console doctrine:fixtures:load --no-interaction
@@ -195,6 +199,7 @@ jobs:
195199
-
196200
name: Run Playwright
197201
working-directory: pwa
202+
timeout-minutes: 3
198203
# use 1 worker to prevent conflict between scenarios (longer but safer)
199204
run: pnpm exec playwright test --workers=1 --grep ${{ matrix.annotation }}
200205
-

api/composer.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"php": ">=8.3",
66
"ext-ctype": "*",
77
"ext-iconv": "*",
8-
"api-platform/core": "^3.3",
8+
"api-platform/doctrine-orm": "^3.4",
9+
"api-platform/graphql": "^3.4",
10+
"api-platform/symfony": "^3.4",
911
"doctrine/common": "^3.4",
1012
"doctrine/doctrine-bundle": "^2.11",
1113
"doctrine/doctrine-fixtures-bundle": "^3.5",
@@ -103,6 +105,18 @@
103105
]
104106
},
105107
"conflict": {
108+
"api-platform/doctrine-common": "^4.0@alpha",
109+
"api-platform/documentation": "^4.0@alpha",
110+
"api-platform/graphql": "^4.0@alpha",
111+
"api-platform/http-cache": "^4.0@alpha",
112+
"api-platform/hydra": "^4.0@alpha",
113+
"api-platform/json-schema": "^4.0@alpha",
114+
"api-platform/jsonld": "^4.0@alpha",
115+
"api-platform/metadata": "^4.0@alpha",
116+
"api-platform/openapi": "^4.0@alpha",
117+
"api-platform/serializer": "^4.0@alpha",
118+
"api-platform/state": "^4.0@alpha",
119+
"api-platform/validator": "^4.0@alpha",
106120
"symfony/symfony": "*"
107121
},
108122
"extra": {
@@ -115,5 +129,6 @@
115129
"flex://defaults"
116130
]
117131
}
118-
}
132+
},
133+
"minimum-stability": "stable"
119134
}

0 commit comments

Comments
 (0)