Add block main_content_wrapper #2052
Workflow file for this run
This file contains 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: Build | |
on: | |
push: | |
branches: | |
- "4.x" | |
pull_request: | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: none | |
- name: Install dependencies | |
run: | | |
composer install | |
vendor/bin/simple-phpunit install | |
- name: DOCtor-RST | |
uses: docker://oskarstark/doctor-rst | |
with: | |
args: --short | |
env: | |
DOCS_DIR: "doc/" | |
# see https://github.com/OskarStark/php-cs-fixer-ga | |
- name: PHP-CS-Fixer | |
uses: docker://oskarstark/php-cs-fixer-ga | |
with: | |
args: --diff --dry-run | |
- name: Lint logical CSS properties | |
run: | | |
php ./src/Resources/bin/logical-css-properties-linter.php | |
phpstan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: none | |
- name: Install dependencies | |
run: | | |
composer install | |
vendor/bin/simple-phpunit install | |
- name: "Run PHPStan analysis" | |
run: vendor/bin/phpstan analyse | |
phpunit: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# Latest Symfony version support | |
- os: macos-latest | |
php_version: "8.4" | |
symfony_version: "7.2" | |
stability: "stable" | |
- os: windows-latest | |
php_version: "8.4" | |
symfony_version: "7.2" | |
stability: "stable" | |
# LTS Symfony version support | |
- os: macos-latest | |
php_version: "8.4" | |
symfony_version: "6.4" | |
stability: "stable" | |
- os: windows-latest | |
php_version: "8.4" | |
symfony_version: "6.4" | |
stability: "stable" | |
# Lowest deps support | |
- os: ubuntu-latest | |
php_version: "8.1" | |
composer_args: "--prefer-lowest" | |
stability: "stable" | |
# Lowest PHP version support. Remove when it is dropped | |
- os: ubuntu-latest | |
php_version: "8.1" | |
symfony_version: "5.4" | |
stability: "stable" | |
- os: ubuntu-latest | |
php_version: "8.2" | |
symfony_version: "6.4" | |
stability: "stable" | |
- os: ubuntu-latest | |
php_version: "8.3" | |
symfony_version: "7.1" | |
stability: "stable" | |
- os: ubuntu-latest | |
php_version: "8.4" | |
symfony_version: "7.1" | |
stability: "stable" | |
# Upcoming Symfony versions | |
- os: ubuntu-latest | |
php_version: "8.4" | |
symfony_version: "7.2" | |
stability: "stable" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
coverage: none | |
extensions: mbstring, intl, pdo, pdo_sqlite, sqlite3 | |
ini-values: date.timezone=UTC | |
- name: symfony/flex is required to install the correct symfony version | |
if: ${{ matrix.symfony_version }} | |
run: | | |
composer global config --no-plugins allow-plugins.symfony/flex true | |
composer global require symfony/flex | |
- name: Configure Composer stability | |
run: | | |
composer config minimum-stability ${{ matrix.stability }} | |
- name: Configure Symfony version for symfony/flex | |
if: ${{ matrix.symfony_version }} | |
run: composer config extra.symfony.require "${{ matrix.symfony_version }}.*" | |
- name: Install dependencies | |
run: | | |
composer update ${{ matrix.composer_args }}; | |
vendor/bin/simple-phpunit install | |
- name: Show installed dependencies | |
run: | | |
composer show | |
- name: Run tests | |
continue-on-error: ${{ matrix.stability == 'dev' || matrix.symfony_version == '7.2' }} | |
env: | |
SYMFONY_DEPRECATIONS_HELPER: "max[total]=999999&ignoreFile=./tests/baseline-ignore.txt" | |
run: | | |
./vendor/bin/simple-phpunit --exclude-group pretty_urls | |
- name: Run Pretty URLs tests | |
# Symfony 5.4 version doesn't include the #[Route] attribute needed to run these tests (it only includes the @Route annotation) | |
if: ${{ matrix.symfony_version != '5.4' && matrix.composer_args != '--prefer-lowest' }} | |
continue-on-error: ${{ matrix.stability == 'dev' || matrix.symfony_version == '7.2' }} | |
env: | |
USE_PRETTY_URLS: "1" | |
SYMFONY_DEPRECATIONS_HELPER: "max[total]=999999&ignoreFile=./tests/baseline-ignore.txt" | |
run: | | |
./vendor/bin/simple-phpunit tests/Controller/PrettyUrls/PrettyUrlsControllerTest.php |