Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/lock-symfony-version.sh

This file was deleted.

39 changes: 19 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,37 @@ on:
- master
pull_request:

env:
APP_ENV: test
TEMP: ${{ github.workspace }}/tmp
SYMFONY_DEPRECATIONS_HELPER: weak

jobs:
PHPUnit:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- { php-version: 8.1, symfony-locked-version: none, dependency-version: prefer-lowest }
- { php-version: 8.2, symfony-locked-version: 6.4.*, dependency-version: prefer-stable }
- { php-version: 8.3, symfony-locked-version: none, dependency-version: prefer-stable }
name: PHPUnit (PHP ${{matrix.php-version}}, Symfony Version Lock ${{ matrix.symfony-locked-version }}, ${{ matrix.dependency-version }})
- { php-version: 8.1, symfony-version: '', orm-version: '', dependency-version: prefer-lowest }
- { php-version: 8.3, symfony-version: 6.4.*, orm-version: '^2.20', dependency-version: '' }
- { php-version: 8.3, symfony-version: 6.4.*, orm-version: '^3.0', dependency-version: '' }
- { php-version: 8.4, symfony-version: 7.*, orm-version: '^2.20', dependency-version: '' }
- { php-version: 8.4, symfony-version: 7.*, orm-version: '^3.0', dependency-version: '' }
name: PHPUnit (PHP ${{matrix.php-version}}, Symfony version constraint ${{ matrix.symfony-version || 'none' }}, Doctrine ORM version constraint ${{ matrix.orm-version || 'none' }}, ${{ matrix.dependency-version || 'prefer-stable' }})
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
tools: composer:v2
- uses: actions/checkout@v4
- run: VERSION=${{ matrix.symfony-locked-version }} .github/workflows/lock-symfony-version.sh
if: matrix.symfony-locked-version != 'none'
tools: composer:v2, flex
- uses: actions/cache@v4
with:
path: vendor
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-locked-version }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }}
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ matrix.orm-version }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-locked-version }}-${{ matrix.dependency-version }}-
- run: |
composer update --${{ matrix.dependency-version }} --no-interaction --no-scripts --no-progress --ansi
composer show
- run: vendor/bin/phpunit
composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ matrix.orm-version }}-${{ matrix.dependency-version }}-
- run: composer require --no-update doctrine/orm '${{ matrix.orm-version }}' --no-interaction --no-scripts --no-progress --ansi
if: matrix.orm-version != ''
- run: composer update --no-interaction --no-scripts --no-progress --ansi --${{ matrix.dependency-version }}
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
COMPOSER_NO_SECURITY_BLOCKING: 1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to allow installations of Twig 2, which all have known security implications.

- run: composer show
- run: vendor/bin/phpunit --display-warnings --display-deprecations