-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Implemented base structure for the whole build and testing …
…process, executed updated php-cs-fixer settings on all files, restructured lots of classes to make them ready for testing (WIP)
- Loading branch information
Showing
114 changed files
with
3,161 additions
and
1,751 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: ['8.2', '8.3'] | ||
typo3: ['11', '12', '13'] | ||
composerInstall: ['composerInstallLowest', 'composerInstallHighest'] | ||
include: | ||
- typo3: '11' | ||
php: '8.0' | ||
composerInstall: 'composerInstallLowest' | ||
- typo3: '11' | ||
php: '8.0' | ||
composerInstall: 'composerInstallHighest' | ||
- typo3: '11' | ||
php: '8.1' | ||
composerInstall: 'composerInstallLowest' | ||
- typo3: '11' | ||
php: '8.1' | ||
composerInstall: 'composerInstallHighest' | ||
- typo3: '12' | ||
php: '8.1' | ||
composerInstall: 'composerInstallLowest' | ||
- typo3: '12' | ||
php: '8.1' | ||
composerInstall: 'composerInstallHighest' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Composer validate | ||
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s composerValidate | ||
|
||
- name: Install dependencies | ||
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s ${{ matrix.composerInstall }} | ||
|
||
- name: Composer normalize | ||
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s composerNormalize -n | ||
|
||
- name: Lint PHP | ||
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s lint | ||
|
||
- name: CGL | ||
run: Build/Scripts/runTests.sh -n -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s cgl -n | ||
|
||
- name: PHPStan | ||
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s phpstan -e "--error-format=github" |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory; | ||
use TYPO3\CodingStandards\CsFixerConfig; | ||
|
||
$config = CsFixerConfig::create(); | ||
/// TODO: This construction can be removed when 11 support is dropped | ||
if (method_exists($config, 'setParallelConfig')) { | ||
$config->setParallelConfig(ParallelConfigFactory::detect()); | ||
} else { | ||
// Old TYPO3 config standards so manually add some rules | ||
$config->addRules([ | ||
'single_line_empty_body' => true | ||
]); | ||
} | ||
$config->getFinder()->in('Classes')->in('Configuration')->in('Tests'); | ||
return $config; |
File renamed without changes.
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.