-
-
Notifications
You must be signed in to change notification settings - Fork 83
Add support for Symfony 8 #248
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,19 +8,38 @@ on: | |
|
||
jobs: | ||
tests: | ||
name: "Tests ${{ matrix.php-version }} deps ${{ matrix.dependency-versions }}" | ||
runs-on: ubuntu-22.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# normal, highest, non-dev installs | ||
php-version: ['8.1', '8.2', '8.3', '8.4'] | ||
dependency-versions: ['highest'] | ||
dependency-version: [ 'highest' ] | ||
symfony-version: [ '' ] | ||
minimum-stability: ['stable'] | ||
include: | ||
# testing lowest PHP version with lowest dependencies | ||
- php-version: '8.1' | ||
dependency-versions: 'lowest' | ||
# dev packages (probably not needed to have multiple such jobs) | ||
- minimum-stability: 'dev' | ||
php-version: '8.4' | ||
# lowest deps | ||
- php-version: '8.1' | ||
dependency-version: 'lowest' | ||
# LTS version of Symfony | ||
- php-version: '8.1' | ||
symfony-version: '6.4.*' | ||
# Explicit Symfony versions | ||
- php-version: '8.1' | ||
symfony-version: '5.4' | ||
- php-version: '8.1' | ||
symfony-version: '6.2' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn't waste resources on EOL versions There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I specified 6.2 and 7.0 because the Bundle support these versions. I also tend to not really care about unmaintained versions, but is it fine here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe it's about time to drop support for unmaintained Symfony releases There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm totally fine with that, but I was thinking doing that in a second PR, and then release WebpackEncoreBundle 3.0 |
||
- php-version: '8.2' | ||
symfony-version: '7.0' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here but we can use 7.3 instead |
||
- php-version: '8.4' | ||
symfony-version: '8.0.x-dev' # TODO: change to '8.0' when Symfony 8.0 is released | ||
minimum-stability: 'dev' # TODO: remove when Symfony 8.0 is released | ||
|
||
env: | ||
SYMFONY_REQUIRE: ${{ matrix.symfony-version || '>=5.4' }} | ||
|
||
steps: | ||
- name: "Checkout code" | ||
|
@@ -31,20 +50,20 @@ jobs: | |
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php-version }}" | ||
tools: flex | ||
|
||
- name: Allow Flex Plugin | ||
run: | | ||
composer global config --no-plugins allow-plugins.symfony/flex true | ||
run: composer global config --no-plugins allow-plugins.symfony/flex true | ||
|
||
- name: Install Global Dependencies | ||
run: | | ||
composer global require --no-progress --no-scripts --no-plugins symfony/flex @dev | ||
- name: Configure Composer minimum stability | ||
run: composer config minimum-stability ${{ matrix.minimum-stability || 'stable' }} --ansi | ||
|
||
- name: "Composer install" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
dependency-versions: "${{ matrix.dependency-versions }}" | ||
dependency-versions: "${{ matrix.dependency-version }}" | ||
composer-options: "--prefer-dist --no-progress" | ||
custom-cache-suffix: "min-stability=${{ matrix.minimum-stability || 'stable' }}" | ||
|
||
- name: Run tests | ||
run: ./vendor/bin/simple-phpunit |
Uh oh!
There was an error while loading. Please reload this page.