Skip to content

Commit

Permalink
[BUGFIX] Requirement on phpunit 10 to make sure PHP8 attributes can b…
Browse files Browse the repository at this point in the history
…e used, excluded PHP8.0 on functional and unit tests
  • Loading branch information
RinyVT committed Oct 16, 2024
1 parent 46d2e03 commit 4cc30d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3']
typo3: ['11', '12', '13']
Expand Down Expand Up @@ -54,7 +55,9 @@ jobs:
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s phpstan -e "--error-format=github"

- name: Functional tests
if: ${{ matrix.php != '8.0' }} # Functional tests are not supported for PHP 8.0 due to PHP requirement of phpunit ^10
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s functional

- name: Unit tests
if: ${{ matrix.php != '8.0' }} # Unit tests are not supported for PHP 8.0 due to PHP requirement of phpunit ^10
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s unit
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^10.1",
"saschaegerer/phpstan-typo3": "^1.10",
"typo3/coding-standards": "^0.7.1 || ^0.8.0",
"typo3/testing-framework": "^7.1.0 || ^8.2.0"
Expand Down

0 comments on commit 4cc30d4

Please sign in to comment.