Skip to content

Commit

Permalink
Merge pull request #74 from jweiland-net/typo3_12_compatibility
Browse files Browse the repository at this point in the history
Typo3 12 compatibility
  • Loading branch information
hojalatheef committed Apr 9, 2024
2 parents 88e9a43 + ec7cf23 commit bed66d4
Show file tree
Hide file tree
Showing 97 changed files with 3,049 additions and 3,514 deletions.
80 changes: 0 additions & 80 deletions .github/workflows/ci.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/testscorev12.yml
@@ -0,0 +1,54 @@
name: CI TYPO3 12.4

on: pull_request

jobs:
CGL:
name: Coding Style Check (TYPO3 Community CGL)

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Composer
run: Build/Scripts/runTests.sh -t 12 -p 8.1 -s composerUpdate

- name: Lint PHP
run: Build/Scripts/runTests.sh -t 12 -p 8.1 -s lint

- name: Validate code against CGL
run: Build/Scripts/runTests.sh -t 12 -p 8.1 -s cgl -n

testsuite:
name: PHP Unit and Functional Tests for TYPO3 Version 12 LTS

needs: CGL

runs-on: ubuntu-latest

strategy:
matrix:
php:
- '8.1'
- '8.2'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Composer
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t 12 -s composerUpdate

- name: Unit Tests
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit

- name: Functional tests with mariadb
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mariadb -s functional

- name: Functional tests with sqlite
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d sqlite -s functional

- name: Functional tests with postgres
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d postgres -s functional
8 changes: 7 additions & 1 deletion .gitignore
Expand Up @@ -30,5 +30,11 @@ nbproject
.session
*.log

# Ignore testing stuff
*.env
/.Build
/composer.json.orig
/composer.json.testing

# Ignore composer stuff
/composer.lock
/composer.lock
28 changes: 28 additions & 0 deletions Build/FunctionalTests.xml
@@ -0,0 +1,28 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="true"
bootstrap="FunctionalTestsBootstrap.php"
cacheResult="false"
colors="true"
convertErrorsToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
verbose="false"
beStrictAboutTestsThatDoNotTestAnything="false"
failOnWarning="true"
>
<testsuites>
<testsuite name="Functional tests">
<directory>../Tests/Functional/</directory>
</testsuite>
</testsuites>
<php>
<ini name="display_errors" value="1" />
<env name="TYPO3_CONTEXT" value="Testing" />
</php>
</phpunit>
17 changes: 17 additions & 0 deletions Build/FunctionalTestsBootstrap.php
@@ -0,0 +1,17 @@
<?php

/*
* This file is part of the package jweiland/jwtools2.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/

use TYPO3\TestingFramework\Core\Testbase;

call_user_func(function () {
$testbase = new Testbase();
$testbase->defineOriginalRootPath();
$testbase->createDirectory(ORIGINAL_ROOT . 'typo3temp/var/tests');
$testbase->createDirectory(ORIGINAL_ROOT . 'typo3temp/var/transient');
});

0 comments on commit bed66d4

Please sign in to comment.