-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Upgrade php version, change typo3 testing framework and upg…
…raded code style tool versions (#13) * updated php version to 8.3, changed testing framework and code-style versions * fixed pipeline * fixed pipeline * fix phpstan * changed version of scrutinizer to php83 * removed mysql info from test.yml * fix pipeline * switch to mariadb in tests.yml * added db distribution to test.yml * fix pipeline * fix pipeline * fix pipeline * chore: use git checkout depth 10 * fixed code review issues --------- Co-authored-by: thomas.layh <[email protected]>
- Loading branch information
Showing
32 changed files
with
426 additions
and
730 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,18 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
typo3: [ ^11.5 ] | ||
php: [ '7.4', '8.0', '8.1' ] | ||
mysql: [ '5.7' ] | ||
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ] | ||
steps: | ||
- name: Set up MySQL ${{ matrix.mysql }} | ||
uses: mirromutth/[email protected] | ||
with: | ||
mysql version: ${{ matrix.mysql }} | ||
mysql root password: 'root' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 10 | ||
- uses: shogo82148/actions-setup-mysql@v1 | ||
with: | ||
distribution: "mariadb" | ||
mysql-version: "10.5" | ||
root-password: root | ||
|
||
- name: Set up PHP Version ${{ matrix.php }} | ||
uses: shivammathur/setup-php@v2 | ||
|
@@ -47,22 +48,22 @@ jobs: | |
run: find . -name \*.php ! -path "./.Build/*" ! -path "./scripts/*" ! -path "./typo3_src/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \; | ||
|
||
- name: Unit Tests without coverage | ||
if: matrix.typo3 != '^11.5' || matrix.php != '7.4' | ||
if: matrix.typo3 != '^11.5' || matrix.php != '8.3' | ||
run: | | ||
export "UNIT_XML"=.Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml | ||
export "UNIT_XML"=.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests.xml | ||
.Build/bin/phpunit --colors -c $UNIT_XML Tests/Unit | ||
- name: Unit Tests with coverage | ||
if: matrix.typo3 == '^11.5' && matrix.php == '7.4' | ||
if: matrix.typo3 == '^11.5' && matrix.php == '8.3' | ||
run: | | ||
export "UNIT_XML"=.Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml | ||
.Build/bin/phpunit --whitelist Classes --coverage-clover=unittest-coverage.clover --colors -c $UNIT_XML Tests/Unit/ | ||
export "UNIT_XML"=.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests-v10.xml | ||
.Build/bin/phpunit --coverage-filter Classes --coverage-clover=unittest-coverage.clover --colors -c $UNIT_XML Tests/Unit/ | ||
- name: Functional Tests without coverage | ||
run: | | ||
export "FUNCTIONAL_XML"=.Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml | ||
export "FUNCTIONAL_XML"=.Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTests.xml | ||
.Build/bin/phpunit --colors -c $FUNCTIONAL_XML Tests/Functional | ||
if: matrix.typo3 != '^11.5' || matrix.php != '7.4' | ||
if: matrix.typo3 != '^11.5' || matrix.php != '8.3' | ||
env: | ||
typo3DatabaseHost: 127.0.0.1 | ||
typo3DatabaseName: typo3 | ||
|
@@ -71,18 +72,17 @@ jobs: | |
|
||
- name: Functional Tests with coverage | ||
run: | | ||
export "FUNCTIONAL_XML"=.Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml | ||
find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; .Build/bin/phpunit --whitelist Classes --coverage-clover={}functionaltest-coverage.clover --colors -c $FUNCTIONAL_XML {}' | ||
if: matrix.typo3 == '^11.5' && matrix.php == '7.4' | ||
export "FUNCTIONAL_XML"=.Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTests-v10.xml | ||
find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; .Build/bin/phpunit --coverage-filter Classes --coverage-clover={}functionaltest-coverage.clover --colors -c $FUNCTIONAL_XML {}' | ||
if: matrix.typo3 == '^11.5' && matrix.php == '8.3' | ||
env: | ||
typo3DatabaseHost: 127.0.0.1 | ||
typo3DatabaseName: typo3 | ||
typo3DatabasePassword: root | ||
typo3DatabaseUsername: root | ||
|
||
- name: Upload coverage results to Scrutinizer | ||
if: matrix.typo3 == '^11.5' && matrix.php == '7.4' | ||
run: | | ||
wget https://scrutinizer-ci.com/ocular.phar | ||
php ocular.phar code-coverage:upload --format=php-clover unittest-coverage.clover | ||
find 'Tests/Functional' -wholename '*Test.php' -exec php ocular.phar code-coverage:upload --format=php-clover {}functionaltest-coverage.clover \; | ||
- name: Upload functional coverage results to Scrutinizer | ||
uses: sudo-bot/action-scrutinizer@latest | ||
if: matrix.typo3 == '^11.5' && matrix.php == '8.3' | ||
with: | ||
cli-args: "--format=php-clover functional-coverage.clover --revision=${{ github.event.pull_request.head.sha || github.sha }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
.Build | ||
|
||
# PHP Dependencies + Dev | ||
Tests/.phpunit.result.cache | ||
/composer.lock | ||
/index.php | ||
/typo3 | ||
|
Oops, something went wrong.