-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Adjust tooling for v13 compatibility
This change modifies the tooling to alow TYPO3 v13 related execution, listed below: * Allow `-t <12|13>` to select TYPO3 v13 as version in `Build/Scripts/runTests.sh` and the composer update script. * Updates the default php version to `8.2` as minimal shared version across core versions. * Allow TYPO3 v13 in `ext_emconf.php` for classic mode instances. * Allow TYPO3 v13 in `composer.json` for the development `EXT:contribution` package. * Add `b13/container` version 3.x as additional version to allow installation as development dependencies against TYPO3 v13. * Added dual major version for nikic/php-parser, required for the `test method` integrity check script. * Add Github Actopn workflow for TYPO3 v13 except functional tests which requires some love first in a dedicated follow up change. * PHPStan is disabled also for now to avoid adding reportings to the baseline which should be properly fixed for dual version support. Used command(s): ```shell composer require \ --no-update \ -d packages/contribution \ "typo3/cms-core":"^12.4.2 || ^13.4" \ "typo3/cms-backend":"^12.4.2 || ^13.4" \ "typo3/cms-frontend":"^12.4.2 || ^13.4" \ "typo3/cms-install":"^12.4.2 || ^13.4" \ "typo3/cms-setup":"^12.4.2 || ^13.4" composer require --dev --no-update \ "b13/container":"^2.3.6 || ^3.1.1" \ "nikic/php-parser":"^4.15.1 || ^5.1.0" ```
- Loading branch information
Showing
10 changed files
with
575 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
name: tests core 13 | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
code-quality: | ||
name: "code quality with core v12" | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ '8.2'] | ||
permissions: | ||
# actions: read|write|none | ||
actions: none | ||
# checks: read|write|none | ||
checks: none | ||
# contents: read|write|none | ||
contents: read | ||
# deployments: read|write|none | ||
deployments: none | ||
# id-token: read|write|none | ||
id-token: none | ||
# issues: read|write|none | ||
issues: none | ||
# discussions: read|write|none | ||
discussions: none | ||
# packages: read|write|none | ||
packages: read | ||
# pages: read|write|none | ||
pages: none | ||
# pull-requests: read|write|none | ||
pull-requests: none | ||
# repository-projects: read|write|none | ||
repository-projects: read | ||
# security-events: read|write|none | ||
security-events: none | ||
# statuses: read|write|none | ||
statuses: none | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Prepare dependencies for TYPO3 v13" | ||
run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s composerUpdate" | ||
|
||
- name: "Run TypoScript lint" | ||
run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s lintTypoScript" | ||
|
||
- name: "Run PHP lint" | ||
run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s lintPhp" | ||
|
||
- name: "Validate CGL" | ||
run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s cgl -n" | ||
|
||
- name: "Ensure tests methods do not start with \"test\"" | ||
run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s checkTestMethodsPrefix" | ||
|
||
- name: "Ensure UTF-8 files do not contain BOM" | ||
run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s checkBom" | ||
|
||
- name: "Test .rst files for integrity" | ||
run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s checkRst" | ||
|
||
- name: "Find duplicate exception codes" | ||
run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s checkExceptionCodes" | ||
|
||
# - name: "Run PHPStan" | ||
# run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s phpstan" | ||
|
||
testsuite: | ||
name: all tests with core v13 | ||
runs-on: ubuntu-24.04 | ||
needs: code-quality | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: ['8.2', '8.3', '8.4'] | ||
permissions: | ||
# actions: read|write|none | ||
actions: none | ||
# checks: read|write|none | ||
checks: none | ||
# contents: read|write|none | ||
contents: read | ||
# deployments: read|write|none | ||
deployments: none | ||
# id-token: read|write|none | ||
id-token: none | ||
# issues: read|write|none | ||
issues: none | ||
# discussions: read|write|none | ||
discussions: none | ||
# packages: read|write|none | ||
packages: read | ||
# pages: read|write|none | ||
pages: none | ||
# pull-requests: read|write|none | ||
pull-requests: none | ||
# repository-projects: read|write|none | ||
repository-projects: read | ||
# security-events: read|write|none | ||
security-events: none | ||
# statuses: read|write|none | ||
statuses: none | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Prepare dependencies for TYPO3 v13" | ||
run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s composerUpdate" | ||
|
||
- name: "Unit" | ||
run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s unit" | ||
# @todo Enable after functional tests setup has been fixed | ||
# - name: "Functional SQLite" | ||
# run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s functional -d sqlite" | ||
# | ||
# - name: "Functional MariaDB 10.5 mysqli" | ||
# run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s functional -d mariadb -a mysqli" | ||
# | ||
# - name: "Functional MariaDB 10.5 pdo_mysql" | ||
# run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s functional -d mariadb -a pdo_mysql" | ||
# | ||
# - name: "Functional MySQL 8.0 mysqli" | ||
# run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s functional -d mariadb -a mysqli" | ||
# | ||
# - name: "Functional MySQL 8.0 pdo_mysql" | ||
# run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s functional -d mariadb -a pdo_mysql" | ||
# | ||
# - name: "Functional PostgresSQL 10" | ||
# run: "Build/Scripts/runTests.sh -t 13 -p ${{ matrix.php-version }} -s functional -d postgres" |
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
Oops, something went wrong.