Update phpunit/phpunit requirement from ^8.5.21 to ^9.6.13 #30
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
# Configuration for running GitHub actions | |
# based on https://github.com/sypets/brofix/blob/main/.github/workflows/ci.yml | |
name: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
all_core_10: | |
name: "all core-10" | |
runs-on: ubuntu-20.04 | |
strategy: | |
# This prevents cancellation of matrix job runs, if one/two already failed and let the | |
# rest matrix jobs be be executed anyway. | |
fail-fast: false | |
matrix: | |
php: [ '7.2', '7.3', '7.4' ] | |
minMax: [ 'composerInstallMin', 'composerInstallMax' ] | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
# This must be checked before core version select is run, as this would write this | |
# and than the check would fail - obiously. | |
- name: "Check if typo3/minimal has been pushed in composer.json" | |
run: Build/Scripts/checkComposerJsonForPushedMinimalPackage.sh | |
- name: "Set Typo3 core version" | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t "^10.4" -s composerCoreVersion | |
- name: "Composer" | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s ${{ matrix.minMax }} | |
- name: "cgl" | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s cgl -v -n | |
- name: "Composer validate" | |
if: always() | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerValidate | |
- name: "Lint PHP" | |
if: always() | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint | |
- name: "phpstan" | |
if: ${{ always() && matrix.minMax == 'composerInstallMax' }} | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s phpstan | |
- name: "Unit tests" | |
if: always() | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit | |
- name: "Functional tests with mariadb" | |
if: always() | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mariadb -s functional | |
- name: "Functional tests with sqlite (nightly or pull_request)" | |
if: ${{ always() && (github.event_name == 'schedule' || github.event_name == 'pull_request' ) }} | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d sqlite -s functional | |
- name: "Functional tests with postgres (nightly or pull_request)" | |
if: ${{ always() && (github.event_name == 'schedule' || github.event_name == 'pull_request' ) }} | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d postgres -s functional | |
all_core_11: | |
name: "all core-11" | |
runs-on: ubuntu-20.04 | |
strategy: | |
# This prevents cancellation of matrix job runs, if one/two already failed and let the | |
# rest matrix jobs be be executed anyway. | |
fail-fast: false | |
matrix: | |
php: [ '7.4', '8.0', '8.1' ] | |
minMax: [ 'composerInstallMin', 'composerInstallMax' ] | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
# This must be checked before core version select is run, as this would write this | |
# and than the check would fail - obiously. | |
- name: "Check if typo3/minimal has been pushed in composer.json" | |
run: Build/Scripts/checkComposerJsonForPushedMinimalPackage.sh | |
- name: "Set Typo3 core version" | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t "^11.5" -s composerCoreVersion | |
- name: "Composer" | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s ${{ matrix.minMax }} | |
- name: "cgl" | |
if: ${{ matrix.php != '8.1' }} | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s cgl -v -n | |
- name: "Composer validate" | |
if: always() | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerValidate | |
- name: "Lint PHP" | |
if: always() | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint | |
- name: "phpstan" | |
if: ${{ always() && matrix.minMax == 'composerInstallMax' }} | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s phpstan | |
- name: "Unit tests" | |
if: always() | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit | |
- name: "Functional tests with mariadb" | |
if: always() | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mariadb -s functional | |
- name: "Functional tests with sqlite (nightly or pull_request)" | |
if: ${{ always() && (github.event_name == 'schedule' || github.event_name == 'pull_request' ) }} | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d sqlite -s functional | |
- name: "Functional tests with postgres (nightly or pull_request)" | |
if: ${{ always() && (github.event_name == 'schedule' || github.event_name == 'pull_request' ) }} | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d postgres -s functional |