Symfony 8 #75
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Quality and Assurance | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| qa: | |
| name: Quality | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| php-versions: | |
| - 8.2 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP, extensions and composer with shivammathur/setup-php | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| extensions: mbstring, xml, ctype, intl, dom, filter | |
| env: | |
| update: true | |
| - name: Install Composer dependencies | |
| run: composer install --working-dir=qa/php-cs-fixer | |
| - name: PHP-CS-Fixer | |
| run: ./qa/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --using-cache=no --verbose --diff | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| php-versions: | |
| - 8.1 | |
| - 8.2 | |
| - 8.3 | |
| - 8.4 | |
| symfony-versions: | |
| - 5.4.* | |
| - 6.4.* | |
| - 7.3.* | |
| dependencies: | |
| - '' | |
| include: | |
| - php-versions: '8.1' | |
| symfony-versions: '5.4.*' | |
| dependencies: 'lowest' | |
| - php-versions: '8.4' | |
| symfony-versions: '8.0.*' | |
| exclude: | |
| - php-versions: '8.1' | |
| symfony-versions: '7.3.*' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP, extensions and composer with shivammathur/setup-php | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| extensions: mbstring, xml, ctype, iconv, intl, pdo, pdo_mysql, dom, filter, gd, json | |
| tools: flex | |
| env: | |
| update: true | |
| # until its released | |
| - name: Use dev stability for Symfony 8 | |
| if: matrix.symfony-versions == '8.0.*' | |
| run: composer config minimum-stability dev | |
| - name: Install Composer | |
| if: "matrix.dependencies == ''" | |
| run: composer update --no-progress --ansi --prefer-stable | |
| env: | |
| SYMFONY_REQUIRE: ${{ matrix.symfony-versions }} | |
| - name: Install Lowest Composer dependencies | |
| if: "matrix.dependencies == 'lowest'" | |
| run: composer update --no-progress --ansi --prefer-stable --prefer-lowest | |
| env: | |
| SYMFONY_REQUIRE: ${{ matrix.symfony-versions }} | |
| - name: Validate composer | |
| run: composer validate --strict --no-check-lock | |
| - name: Execute unit tests | |
| run: ./vendor/bin/simple-phpunit |