Skip to content

Commit e861f90

Browse files
authored
[TASK] Add TYPO3 v14 support (#742)
* [TASK] Add TYPO3 v14 support * [BUGFIX] Remove searchField and fix some issues * [BUGFIX] Extbase DataMapFactory cannot handle Interfaces for properties * [BUGFIX] Use correct lowercase type hint in registerArgument() * [BUGFIX] Use newer cachix/install-nix-action version * [BUGFIX] Return null if array key not exists * [BUGFIX] Remove entries from phpstan baseline after rebase * [TASK] Add LogInterface for orders * [TASK] Add first test for logging in MailHandler * [TASK] Add own LogLevel enum and more tests * [TASK] Add Logging for updating payment and shipping * [TASK] Update version numbers in several files * [TASK] Make extension compatible to TYPO3 v14.2 * [TASK] Change prices in database to fixed-point numbers * [BUGFIX] Add type configuration for page wizard * [TASK] Move commands to composer and use them from ci and nix-shell * [TASK] Split up TypoScript files into smaller pieces * [TASK] Apply more and newer php-cs-fixer rules * [TASK] Add SiteSets as default configuration for cart * [TASK] Update required TYPO3 version to 14.3
1 parent 834d619 commit e861f90

281 files changed

Lines changed: 10284 additions & 2941 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yaml

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,19 @@ jobs:
7979
run: composer install --prefer-dist --no-progress --no-suggest
8080

8181
- name: Coding Guideline
82-
run: .build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --dry-run --using-cache=no --path-mode=intersection ./
82+
run: composer project:cgl
8383

8484
code-quality:
8585
runs-on: ubuntu-latest
8686
needs:
8787
- php-linting
8888
strategy:
8989
matrix:
90-
include:
91-
- php-version: '8.2'
92-
typo3-version: '^13.4'
93-
- php-version: '8.3'
94-
typo3-version: '^13.4'
95-
- php-version: '8.4'
96-
typo3-version: '^13.4'
97-
- php-version: '8.5'
98-
typo3-version: '^13.4'
90+
php-version:
91+
- 8.2
92+
- 8.3
93+
- 8.4
94+
- 8.5
9995
steps:
10096
- uses: actions/checkout@v4
10197

@@ -112,41 +108,35 @@ jobs:
112108
&& composer install --no-progress --no-ansi --no-interaction
113109
114110
- name: Code Quality (by PHPStan)
115-
run: .build/bin/phpstan analyse -c Build/phpstan.neon
111+
run: composer project:phpstan
116112

117-
tests-phpunit:
113+
tests-unit-and-functional:
118114
runs-on: ubuntu-latest
119115
needs:
120116
- coding-guideline
121117
- code-quality
118+
strategy:
119+
matrix:
120+
php-version:
121+
- 8.2
122+
- 8.3
123+
- 8.4
124+
- 8.5
122125
steps:
123-
- uses: actions/checkout@v3
126+
- uses: actions/checkout@v4
124127

125-
- uses: cachix/install-nix-action@v17
128+
- name: Install PHP
129+
uses: shivammathur/setup-php@v2
126130
with:
127-
nix_path: nixpkgs=channel:nixos-unstable
128-
129-
- name: Run Unit Tests PHP8.2
130-
run: nix-shell --arg phpVersion \"php82\" --pure --run project-test-unit
131-
132-
- name: Run Unit Tests PHP8.3
133-
run: nix-shell --arg phpVersion \"php83\" --pure --run project-test-unit
134-
135-
- name: Run Unit Tests PHP8.4
136-
run: nix-shell --arg phpVersion \"php84\" --pure --run project-test-unit
137-
138-
- name: Run Unit Tests PHP8.5
139-
run: nix-shell --arg phpVersion \"php85\" --pure --run project-test-unit
140-
141-
- name: Run Functional Tests PHP8.2
142-
run: nix-shell --arg phpVersion \"php82\" --pure --run project-test-functional
131+
php-version: "${{ matrix.php-version }}"
132+
tools: composer:v2
143133

144-
- name: Run Functional Tests PHP8.3
145-
run: nix-shell --arg phpVersion \"php83\" --pure --run project-test-functional
134+
- name: Install dependencies
135+
run: composer install --prefer-dist --no-progress --no-suggest
146136

147-
- name: Run Functional Tests PHP8.4
148-
run: nix-shell --arg phpVersion \"php84\" --pure --run project-test-functional
137+
- name: Run unit tests
138+
run: composer project:test:unit
149139

150-
- name: Run Functional Tests PHP8.5
151-
run: nix-shell --arg phpVersion \"php85\" --pure --run project-test-functional
140+
- name: Run functional tests
141+
run: export typo3DatabaseDriver=pdo_sqlite && composer project:test:functional
152142

0 commit comments

Comments
 (0)