Remove special build for symfony-8, update existing ones for Symfony 8

This commit is contained in:
TheMilek 2026-03-10 13:06:19 +01:00 committed by Grzegorz Sadowski
parent 4f725a3884
commit 243356f489
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
2 changed files with 32 additions and 119 deletions

View file

@ -1,115 +0,0 @@
name: Packages (Symfony 8)
on:
pull_request:
paths:
- "src/Sylius/Bundle/*/composer.json"
- "src/Sylius/Component/*/composer.json"
- "src/Sylius/Bundle/*/test/**"
- "src/Sylius/Bundle/*/tests/**"
- "src/Sylius/Component/*/tests/**"
- ".github/workflows/ci_packages-sf8.yaml"
workflow_dispatch: ~
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
name: "PHP 8.4, Symfony 8.0 - ${{ matrix.package }}"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
package:
- "Bundle/AddressingBundle"
- "Bundle/AdminBundle"
- "Bundle/ApiBundle"
- "Bundle/AttributeBundle"
- "Bundle/ChannelBundle"
- "Bundle/CoreBundle"
- "Bundle/CurrencyBundle"
- "Bundle/CustomerBundle"
- "Bundle/InventoryBundle"
- "Bundle/LocaleBundle"
- "Bundle/MoneyBundle"
- "Bundle/OrderBundle"
- "Bundle/PaymentBundle"
- "Bundle/PayumBundle"
- "Bundle/ProductBundle"
- "Bundle/PromotionBundle"
- "Bundle/ReviewBundle"
- "Bundle/ShippingBundle"
- "Bundle/ShopBundle"
- "Bundle/TaxationBundle"
- "Bundle/TaxonomyBundle"
- "Bundle/UiBundle"
- "Bundle/UserBundle"
- "Component/Addressing"
- "Component/Attribute"
- "Component/Channel"
- "Component/Core"
- "Component/Currency"
- "Component/Customer"
- "Component/Inventory"
- "Component/Locale"
- "Component/Order"
- "Component/Payment"
- "Component/Product"
- "Component/Promotion"
- "Component/Review"
- "Component/Shipping"
- "Component/Taxation"
- "Component/Taxonomy"
- "Component/User"
env:
COMPOSER_ROOT_VERSION: "dev-main"
defaults:
run:
working-directory: "src/Sylius/${{ matrix.package }}"
steps:
-
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
coverage: none
- name: Restrict Symfony version
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^2.4"
composer config extra.symfony.require "~8.0.0"
- name: Add VCS repositories for SF8 forks
run: |
composer config repositories.gaufrette vcs https://github.com/garak/KnpGaufretteBundle.git
- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: "sf8-${{ runner.os }}-${{ matrix.package }}-${{ hashFiles(format('src/Sylius/{0}/composer.json', matrix.package)) }}"
restore-keys: |
sf8-${{ runner.os }}-${{ matrix.package }}-
- name: Install dependencies
run: composer update --no-interaction --no-scripts --prefer-dist
- name: Create test database schema
if: matrix.package == 'Bundle/ApiBundle'
run: tests/Application/bin/console doctrine:schema:update --force
- name: Run tests
run: vendor/bin/phpunit --colors=always

View file

@ -24,6 +24,13 @@
"mariadb": "11.4.7",
"doctrine_bundle": "^3.0",
"state_machine_adapter": "symfony_workflow"
},
{
"php": "8.4",
"symfony": "~8.0.0",
"mariadb": "11.4.7",
"doctrine_bundle": "^3.0",
"state_machine_adapter": "symfony_workflow"
}
]
},
@ -35,6 +42,13 @@
"mysql": "8.4",
"twig": "^3.3",
"doctrine_bundle": "^3.0"
},
{
"php": "8.4",
"symfony": "~8.0.0",
"mysql": "8.4",
"twig": "^3.3",
"doctrine_bundle": "^3.0"
}
]
},
@ -93,6 +107,12 @@
"symfony": "~7.4.0",
"postgres": "17.5",
"doctrine_bundle": "^3.0"
},
{
"php": "8.4",
"symfony": "~8.0.0",
"postgres": "17.5",
"doctrine_bundle": "^3.0"
}
]
},
@ -106,6 +126,10 @@
{
"php": "8.5",
"symfony": "~7.4.0"
},
{
"php": "8.4",
"symfony": "~8.0.0"
}
]
}
@ -129,7 +153,8 @@
"8.5"
],
"symfony": [
"~7.4.0"
"~7.4.0",
"~8.0.0"
],
"mariadb": [
"11.4.7"
@ -157,7 +182,8 @@
"8.4"
],
"symfony": [
"~7.4.0"
"~7.4.0",
"~8.0.0"
],
"mysql": [
"8.4"
@ -234,7 +260,8 @@
"8.5"
],
"symfony": [
"~7.4.0"
"~7.4.0",
"~8.0.0"
],
"postgres": [
"15.13",
@ -263,7 +290,8 @@
"8.5"
],
"symfony": [
"~7.4.0"
"~7.4.0",
"~8.0.0"
]
}
}