Skip to content

Commit

Permalink
chore: use api-platform/symfony:^3.4 instead of api-platform/core (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Sep 18, 2024
1 parent 73efe13 commit 490bf30
Show file tree
Hide file tree
Showing 7 changed files with 1,372 additions and 417 deletions.
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

0 comments on commit 490bf30

Please sign in to comment.