Skip to content

Bundle CI

Bundle CI #3024

Workflow file for this run

name: Bundle CI
on:
push:
branches: ['2.x']
pull_request:
schedule:
- cron: '0 */12 * * *'
jobs:
tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3', '8.4']
dependency-version: [ 'highest' ]
symfony-version: [ '' ]
minimum-stability: ['stable']
include:
# 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.*'
- php-version: '8.2'
symfony-version: '7.0.*'
- 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"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
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
- 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-version }}"
composer-options: "--prefer-dist --no-progress"
custom-cache-suffix: "min-stability=${{ matrix.minimum-stability || 'stable' }}"
- name: Run tests
run: ./vendor/bin/simple-phpunit