Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use api-platform/symfony:^3.4 instead of api-platform/core #440

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- \d+.\d+
pull_request: ~
workflow_dispatch: ~
# Check api-platform/core:dev-main every sunday at 02:00
# Check api-platform packages with dev every sunday at 02:00
schedule:
- cron: 0 2 * * 0

Expand Down Expand Up @@ -54,7 +54,9 @@ jobs:
-
name: Update API Platform to latest
if: ${{ github.event_name == 'schedule' }}
run: docker compose exec php composer require api-platform/core:dev-main
run: |
docker compose exec php composer config minimum-stability dev
docker compose exec php composer update "api-platform/*"
-
name: Check HTTP reachability
run: curl -v --fail-with-body http://localhost
Expand Down Expand Up @@ -154,7 +156,9 @@ jobs:
-
name: Update API Platform to latest
if: ${{ github.event_name == 'schedule' }}
run: docker compose exec php composer require api-platform/core:dev-main
run: |
docker compose exec php composer config minimum-stability dev
docker compose exec php composer update "api-platform/*"
-
name: Load Fixtures
run: docker compose run --rm php bin/console doctrine:fixtures:load --no-interaction
Expand Down Expand Up @@ -195,6 +199,7 @@ jobs:
-
name: Run Playwright
working-directory: pwa
timeout-minutes: 3
# use 1 worker to prevent conflict between scenarios (longer but safer)
run: pnpm exec playwright test --workers=1 --grep ${{ matrix.annotation }}
-
Expand Down
19 changes: 17 additions & 2 deletions api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"php": ">=8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"api-platform/core": "^3.3",
"api-platform/doctrine-orm": "^3.4",
"api-platform/graphql": "^3.4",
"api-platform/symfony": "^3.4",
"doctrine/common": "^3.4",
"doctrine/doctrine-bundle": "^2.11",
"doctrine/doctrine-fixtures-bundle": "^3.5",
Expand Down Expand Up @@ -103,6 +105,18 @@
]
},
"conflict": {
"api-platform/doctrine-common": "^4.0@alpha",
"api-platform/documentation": "^4.0@alpha",
"api-platform/graphql": "^4.0@alpha",
"api-platform/http-cache": "^4.0@alpha",
"api-platform/hydra": "^4.0@alpha",
"api-platform/json-schema": "^4.0@alpha",
"api-platform/jsonld": "^4.0@alpha",
"api-platform/metadata": "^4.0@alpha",
"api-platform/openapi": "^4.0@alpha",
"api-platform/serializer": "^4.0@alpha",
"api-platform/state": "^4.0@alpha",
"api-platform/validator": "^4.0@alpha",
"symfony/symfony": "*"
},
"extra": {
Expand All @@ -115,5 +129,6 @@
"flex://defaults"
]
}
}
},
"minimum-stability": "stable"
}
Loading
Loading