Skip to content

Commit

Permalink
chore: remove support from API Platform 2.*
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Oct 2, 2023
1 parent 1d8865b commit 68687ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,24 @@ concurrency:

jobs:
tests:
name: Tests PHP ${{ matrix.php }} (Symfony ${{ matrix.symfony }}) (API Platform ${{ matrix.api-platform }})
name: Tests PHP ${{ matrix.php }} (Symfony ${{ matrix.symfony }})
runs-on: ubuntu-latest
strategy:
matrix:
php:
# Only PHP supported versions: https://www.php.net/supported-versions.php
- '8.0'
- '8.1'
- '8.2'
symfony:
# Only Symfony supported versions: https://symfony.com/releases
- '5.4.*'
# API Platform 3.* only supports Symfony >= 6.1
- '6.3.*'
api-platform:
# Only API Platform supported versions
- '^2.6'
- '^2.7'
- '^3.1'
include:
# Ensure the bundle is bootable
- php: '8.2'
symfony: '6.3.*'
bootable: true
quality: true
api-platform: '^3.1'
exclude:
# Symfony 6 requires PHP >= 8.1
- symfony: '6.3.*'
php: '8.0'
# Symfony 6.* requires PHP >= 8.1
- symfony: '6.3.*'
php: '8.0'
# API Platform 3.1 requires PHP >= 8.1 and Symfony >= 6.1.*
- api-platform: '^3.1'
php: '8.0'
- api-platform: '^3.1'
symfony: '5.4.*'
fail-fast: false
steps:
- name: Checkout
Expand All @@ -76,8 +57,6 @@ jobs:
restore-keys: ${{ runner.os }}-composer-
- name: Configure Symfony
run: composer config extra.symfony.require "${{ matrix.symfony }}"
- name: Configure API Platform
run: composer require api-platform/core:${{ matrix.api-platform }} --dev --no-install --no-update --no-progress --no-scripts
- name: Update project dependencies
run: composer update --no-progress --ansi --prefer-stable --prefer-dist --no-scripts
- name: Bundle is bootable
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"require-dev": {
"ext-json": "*",
"api-platform/core": "^2.6 || ^3.0",
"api-platform/core": "^3.0",
"behat/behat": "^3.1",
"dg/bypass-finals": "^1.1",
"doctrine/data-fixtures": "^1.2",
Expand Down

0 comments on commit 68687ce

Please sign in to comment.