mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-24 18:16:28 +00:00
Use per-extension PHPUnit bridge and force PHPUnit 11 on PHP 8.2+
This commit is contained in:
+12
-10
@@ -64,6 +64,9 @@ jobs:
|
||||
|
||||
continue-on-error: true
|
||||
|
||||
env:
|
||||
SYMFONY_PHPUNIT_VERSION: ${{ matrix.php-version == '8.1' && '9.6' || '11.3' }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
php-version:
|
||||
@@ -95,15 +98,6 @@ jobs:
|
||||
- name: "Add PHPUnit matcher"
|
||||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
||||
|
||||
- name: "Composer install Twig"
|
||||
run: composer install
|
||||
|
||||
- name: "Install PHPUnit"
|
||||
run: vendor/bin/simple-phpunit install
|
||||
|
||||
- name: "PHPUnit version"
|
||||
run: vendor/bin/simple-phpunit --version
|
||||
|
||||
- name: "Prevent installing symfony/translation-contracts 3.0"
|
||||
if: "matrix.extension == 'twig-extra-bundle'"
|
||||
working-directory: extra/${{ matrix.extension }}
|
||||
@@ -113,6 +107,14 @@ jobs:
|
||||
working-directory: extra/${{ matrix.extension }}
|
||||
run: composer install
|
||||
|
||||
- name: "Install PHPUnit"
|
||||
working-directory: extra/${{ matrix.extension }}
|
||||
run: vendor/bin/simple-phpunit install
|
||||
|
||||
- name: "PHPUnit version"
|
||||
working-directory: extra/${{ matrix.extension }}
|
||||
run: vendor/bin/simple-phpunit --version
|
||||
|
||||
- name: "Switch use_yield to true"
|
||||
if: "matrix.php-version == '8.2'"
|
||||
run: |
|
||||
@@ -120,7 +122,7 @@ jobs:
|
||||
|
||||
- name: "Run tests for ${{ matrix.extension }}"
|
||||
working-directory: extra/${{ matrix.extension }}
|
||||
run: ../../vendor/bin/simple-phpunit
|
||||
run: vendor/bin/simple-phpunit
|
||||
|
||||
phpstan:
|
||||
name: "PHPStan"
|
||||
|
||||
Reference in New Issue
Block a user