-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Compatibility with TYPO3 12
- Loading branch information
1 parent
f1e6a38
commit 9b9d2d5
Showing
31 changed files
with
1,598 additions
and
1,111 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 |
---|---|---|
@@ -1,36 +1,49 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.php] | ||
indent_size = 4 | ||
indent_style = space | ||
# JS files | ||
[*.js] | ||
indent_size = 2 | ||
|
||
[*.{html,js,css}] | ||
indent_size = 4 | ||
# JSON files | ||
[*.json] | ||
indent_style = tab | ||
|
||
[*.{yml,txt,md,sql}] | ||
# package.json | ||
[package.json] | ||
indent_size = 2 | ||
indent_style = space | ||
|
||
[*.json] | ||
# ReST files | ||
[{*.rst,*.rst.txt}] | ||
indent_size = 4 | ||
indent_style = space | ||
max_line_length = 80 | ||
|
||
[*.{xml,xlf,xsd}] | ||
indent_size = 2 | ||
# SQL files | ||
[*.sql] | ||
indent_style = tab | ||
indent_size = 2 | ||
|
||
[*.{yml,yaml}] | ||
# YAML files | ||
[{*.yml,*.yaml}] | ||
indent_size = 2 | ||
|
||
[*.typoscript] | ||
indent_size = 4 | ||
# XLF files | ||
[*.xlf] | ||
indent_style = tab | ||
|
||
# .htaccess | ||
[.htaccess] | ||
indent_style = tab | ||
|
||
# Markdown files | ||
[*.md] | ||
max_line_length = 80 |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/.* export-ignore | ||
/Tests export-ignore | ||
/phpunit.xml export-ignore | ||
/Configuration/FunctionalTests.xml export-ignore | ||
/Configuration/UnitTests.xml export-ignore | ||
/phpcs.xml export-ignore | ||
/rector.php export-ignore | ||
/ruleset.xml export-ignore |
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,25 @@ | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
milestone: 12 | ||
|
||
- package-ecosystem: "composer" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
allow: | ||
- dependency-type: "development" | ||
ignore: | ||
- dependency-name: "doctrine/dbal" | ||
- dependency-name: "phpunit/phpunit" | ||
- dependency-name: "symfony/console" | ||
- dependency-name: "symfony/translation" | ||
- dependency-name: "symfony/yaml" | ||
- dependency-name: "typo3/cms-*" | ||
versioning-strategy: "increase" | ||
milestone: 12 |
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,207 @@ | ||
--- | ||
# This GitHub Actions workflow uses the same development tools that are also installed locally | ||
# via Composer or PHIVE and calls them using the Composer scripts. | ||
name: CI with Composer scripts | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
schedule: | ||
- cron: '15 3 * * 1' | ||
permissions: | ||
contents: read | ||
jobs: | ||
php-lint: | ||
name: "PHP linter" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
coverage: none | ||
tools: composer:v2 | ||
- name: "Show the Composer configuration" | ||
run: "composer config --global --list" | ||
- name: "Run PHP lint" | ||
run: "composer ci:php:lint" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- "8.0" | ||
- "8.1" | ||
- "8.2" | ||
- "8.3" | ||
code-quality: | ||
name: "Code quality checks" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
coverage: none | ||
tools: composer:v2 | ||
- name: "Show Composer version" | ||
run: "composer --version" | ||
- name: "Show the Composer configuration" | ||
run: "composer config --global --list" | ||
- name: "Cache dependencies installed with composer" | ||
uses: actions/cache@v3 | ||
with: | ||
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}" | ||
path: ~/.cache/composer | ||
restore-keys: "php${{ matrix.php-version }}-composer-\n" | ||
- name: "Install Composer dependencies" | ||
run: "composer install --no-progress" | ||
- name: "Run command" | ||
run: "composer ci:${{ matrix.command }}" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
command: | ||
- "composer:normalize" | ||
- "composer:psr-verify" | ||
- "php:cs-fixer" | ||
- "php:sniff" | ||
- "yaml:lint" | ||
- "xliff:lint" | ||
php-version: | ||
- "8.3" | ||
unit-tests: | ||
name: "Unit tests" | ||
runs-on: ubuntu-22.04 | ||
needs: php-lint | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
coverage: none | ||
tools: composer:v2 | ||
- name: "Show Composer version" | ||
run: "composer --version" | ||
- name: "Show the Composer configuration" | ||
run: "composer config --global --list" | ||
- name: "Cache dependencies installed with composer" | ||
uses: actions/cache@v3 | ||
with: | ||
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-${{ hashFiles('**/composer.json') }}" | ||
path: ~/.cache/composer | ||
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-\n" | ||
- name: "Install TYPO3 Core" | ||
env: | ||
TYPO3: "${{ matrix.typo3-version }}" | ||
run: | | ||
composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"$TYPO3" | ||
composer show | ||
- name: "Install lowest dependencies with composer" | ||
if: "matrix.composer-dependencies == 'lowest'" | ||
run: | | ||
composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest | ||
composer show | ||
- name: "Install highest dependencies with composer" | ||
if: "matrix.composer-dependencies == 'highest'" | ||
run: | | ||
composer update --no-ansi --no-interaction --no-progress --with-dependencies | ||
composer show | ||
- name: "Run unit tests" | ||
run: "composer ci:tests:unit" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- typo3-version: "^12.4" | ||
php-version: "8.1" | ||
composer-dependencies: lowest | ||
- typo3-version: "^12.4" | ||
php-version: "8.1" | ||
composer-dependencies: highest | ||
- typo3-version: "^12.4" | ||
php-version: "8.2" | ||
composer-dependencies: lowest | ||
- typo3-version: "^12.4" | ||
php-version: "8.2" | ||
composer-dependencies: highest | ||
- typo3-version: "^12.4" | ||
php-version: "8.3" | ||
composer-dependencies: lowest | ||
- typo3-version: "^12.4" | ||
php-version: "8.3" | ||
composer-dependencies: highest | ||
functional-tests: | ||
name: "Functional tests" | ||
runs-on: ubuntu-22.04 | ||
needs: php-lint | ||
env: | ||
TYPO3_PATH_WEB: $PWD/.Build/public | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
tools: composer:v2 | ||
extensions: intl, mbstring, pdo_sqlite | ||
coverage: none | ||
- name: "Show Composer version" | ||
run: "composer --version" | ||
- name: "Show the Composer configuration" | ||
run: "composer config --global --list" | ||
- name: "Cache dependencies installed with composer" | ||
uses: actions/cache@v3 | ||
with: | ||
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-${{ hashFiles('**/composer.json') }}" | ||
path: ~/.cache/composer | ||
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-\n" | ||
- name: "Install TYPO3 Core" | ||
env: | ||
TYPO3: "${{ matrix.typo3-version }}" | ||
run: | | ||
composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"$TYPO3" | ||
composer show | ||
- name: "Install lowest dependencies with composer" | ||
if: "matrix.composer-dependencies == 'lowest'" | ||
run: | | ||
composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest | ||
composer show | ||
- name: "Install highest dependencies with composer" | ||
if: "matrix.composer-dependencies == 'highest'" | ||
run: | | ||
composer update --no-ansi --no-interaction --no-progress --with-dependencies | ||
composer show | ||
- name: "Run functional tests" | ||
run: | | ||
export typo3DatabaseDriver="pdo_sqlite"; | ||
composer ci:tests:functional | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- typo3-version: "^12.4" | ||
php-version: "8.1" | ||
composer-dependencies: lowest | ||
- typo3-version: "^12.4" | ||
php-version: "8.1" | ||
composer-dependencies: highest | ||
- typo3-version: "^12.4" | ||
php-version: "8.2" | ||
composer-dependencies: lowest | ||
- typo3-version: "^12.4" | ||
php-version: "8.2" | ||
composer-dependencies: highest | ||
- typo3-version: "^12.4" | ||
php-version: "8.3" | ||
composer-dependencies: lowest | ||
- typo3-version: "^12.4" | ||
php-version: "8.3" | ||
composer-dependencies: highest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/.Build | ||
/.idea | ||
/var | ||
/.env | ||
/.env.dist | ||
/.php-cs-fixer.cache | ||
|
Oops, something went wrong.