Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
[FEATURE] Add support for TYPO3 12
Browse files Browse the repository at this point in the history
Fixes #365
  • Loading branch information
oliverklee committed Apr 1, 2023
1 parent 2ac94fd commit 6908526
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,21 @@ jobs:
run: |
composer require --no-progress typo3/cms-core:"$TYPO3"
composer show
- name: "Set up TYPO3"
- name: "Set up TYPO3 for < 12"
if : ${{ matrix.typo3-version != '^12.3' }}
run: >
.Build/vendor/bin/typo3cms install:setup --no-interaction --site-setup-type="site"
--database-user-name="${DATABASE_USER}" --database-host-name="${DATABASE_HOST}"
--database-port="${{ job.services.mysql.ports[3306] }}" --database-name="${DATABASE_NAME}"
--admin-user-name="admin" --admin-password="password" --site-name="Test installation";
- name: "Set up TYPO3 for >= 12"
if : ${{ matrix.typo3-version == '^12.3' }}
run: >
.Build/vendor/bin/typo3 setup --no-interaction --create-site=true
--username="${DATABASE_USER}" --host="${DATABASE_HOST}"
--port="${{ job.services.mysql.ports[3306] }}" --dbname="${DATABASE_NAME}"
--admin-email="[email protected]" --driver="pdo_sqlite" --password=""
--admin-username="admin" --admin-user-password="password" --project-name="Test installation";
- name: "Run unit tests"
run: "composer ci:tests:unit"
strategy:
Expand All @@ -149,3 +158,7 @@ jobs:
php-version: "8.1"
- typo3-version: "^11.5"
php-version: "8.2"
- typo3-version: "^12.3"
php-version: "8.1"
- typo3-version: "^12.3"
php-version: "8.2"
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# PHPUnit TYPO3 extension

[![TYPO3 V11](https://img.shields.io/badge/TYPO3-11-orange.svg)](https://get.typo3.org/version/11)
[![TYPO3 V10](https://img.shields.io/badge/TYPO3-10-orange.svg)](https://get.typo3.org/version/10)
[![TYPO3 V9](https://img.shields.io/badge/TYPO3-9-orange.svg)](https://get.typo3.org/version/9)
[![TYPO3 V10](https://img.shields.io/badge/TYPO3-10-orange.svg)](https://get.typo3.org/version/10)
[![TYPO3 V11](https://img.shields.io/badge/TYPO3-11-orange.svg)](https://get.typo3.org/version/11)
[![TYPO3 V12](https://img.shields.io/badge/TYPO3-12-orange.svg)](https://get.typo3.org/version/12)
[![License](https://img.shields.io/github/license/oliverklee/ext-phpunit)](https://packagist.org/packages/oliverklee/phpunit)
[![Total Downloads](https://poser.pugx.org/oliverklee/phpunit/downloads.svg)](https://packagist.org/packages/oliverklee/phpunit)
[![GitHub CI Status](https://github.com/oliverklee/ext-phpunit/workflows/CI/badge.svg?branch=main)](https://github.com/oliverklee/ext-phpunit/actions)
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
},
"require": {
"php": ">= 7.2",
"symfony/console": "^4.4 || ^5.4 || ^6.1",
"typo3/cms-core": "^9.5 || ^10.4 || ^11.5.1"
"symfony/console": "^4.4 || ^5.4 || ^6.2",
"typo3/cms-core": "^9.5 || ^10.4 || ^11.5.1 || ^12.3"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.4.0",
"helhum/typo3-console": "^5.8.6 || ^6.7.6 || ^7.1.4",
"helhum/typo3-console": "^5.8.6 || ^6.7.7 || ^7.1.6 || ^8.0.0",
"phpstan/extension-installer": "^1.2.0",
"phpstan/phpstan": "^1.10.9",
"phpstan/phpstan-phpunit": "^1.3.11",
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'constraints' => [
'depends' => [
'php' => '7.2.0-',
'typo3' => '9.5.0-11.5.99',
'typo3' => '9.5.0-12.4.99',
],
'conflicts' => [],
'suggests' => [],
Expand Down

0 comments on commit 6908526

Please sign in to comment.