Skip to content

Commit

Permalink
Merge pull request #13 from sitegeist/task/readyFor13
Browse files Browse the repository at this point in the history
Update extension to be compatible with TYPO3 13
  • Loading branch information
Atomschinken authored Sep 25, 2024
2 parents 6a79bff + 8c505b4 commit 08d3073
Show file tree
Hide file tree
Showing 27 changed files with 302 additions and 1,012 deletions.
47 changes: 27 additions & 20 deletions .ecrc
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
{
"Verbose": false,
"Debug": false,
"IgnoreDefaults": false,
"SpacesAftertabs": false,
"NoColor": false,
"Exclude": [
".Build",
".git",
".DS_Store",
".xsd",
"var/"
],
"AllowedContentTypes": [],
"PassedFiles": [],
"Disable": {
"EndOfLine": false,
"Indentation": false,
"InsertFinalNewline": false,
"TrimTrailingWhitespace": false
}
"Verbose": false,
"Debug": false,
"IgnoreDefaults": false,
"SpacesAftertabs": false,
"NoColor": false,
"Exclude": [
"\\.git",
"\\.sql$",
"\\.DS_Store",
"\\.rst",
"\\.idea",
"\\.vscode",
"\\.phar$",
"\\.php_cs\\.cache",
"\\.json",
"vendor",
".composer_cache",
".php-cs-fixer.cache"
],
"AllowedContentTypes": [],
"PassedFiles": [],
"Disable": {
"EndOfLine": false,
"Indentation": false,
"InsertFinalNewline": false,
"TrimTrailingWhitespace": false
}
}
159 changes: 30 additions & 129 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,142 +3,43 @@ name: tests
on: [ push, pull_request ]

jobs:
# phpstan:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: php-actions/composer@v5
#
# - name: PHPStan Static Analysis
# uses: php-actions/phpstan@master
# with:
# path: Classes/
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
with:
php_version: 8.2
php_extensions: intl
- uses: php-actions/phpstan@v3
with:
configuration: ./Build/Testing/phpstan.neon
path: .
phpcs:
name: phpcs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Validate composer.json
run: Build/Scripts/runTests.sh -s composerValidate

- name: Cache composer dependencies
uses: actions/cache@v1
- name: Composer install
uses: php-actions/composer@v6
with:
path: ~/.composer/cache
key: composer

- name: Install composer dependencies
run: Build/Scripts/runTests.sh -s composerInstall
php_version: 8.2
php_extensions: intl

- name: PHP Linting
run: Build/Scripts/runTests.sh -s lintPhp
- name: PHP Code Sniffer
uses: php-actions/phpcs@v1
with:
php_version: 8.2
ignore: /vendor/
path: .
standard: PSR2
extensions: php
warning_severity: 6

editorconfig:
name: editorconfig
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Validate composer.json
run: Build/Scripts/runTests.sh -s composerValidate

- name: Cache composer dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: composer

- name: Install composer dependencies
run: Build/Scripts/runTests.sh -s composerInstall

- name: Editorconfig Linting
run: Build/Scripts/runTests.sh -s lintEditorconfig


# unittest:
# runs-on: ubuntu-latest
#
# strategy:
# max-parallel: 2
# matrix:
# php-versions: [7.4, 8.0, 8.1]
# typo3-versions: [10, 11, 12]
# exclude:
# -
# php-versions: '8.0'
# typo3-versions: 10
# -
# php-versions: '8.1'
# typo3-versions: 10
# -
# php-versions: '7.4'
# typo3-versions: 12
#
# name: Unit (PHP ${{ matrix.php-versions }}, TYPO3 ${{ matrix.typo3-versions }})
# steps:
# -
# uses: actions/checkout@v2
#
# -
# name: Validate composer.json
# run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerValidate
#
# -
# name: Cache composer dependencies
# uses: actions/cache@v1
# with:
# path: ~/.composer/cache
# key: php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}
#
# -
# name: Install composer dependencies
# run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerInstall
#
# -
# name: Automated Unit Testing
# run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s unit
#
#
# functionaltest:
# runs-on: ubuntu-latest
#
# strategy:
# max-parallel: 2
# matrix:
# php-versions: [ 7.4, 8.0, 8.1 ]
# typo3-versions: [ 10, 11, 12 ]
# exclude:
# -
# php-versions: '8.0'
# typo3-versions: 10
# -
# php-versions: '8.1'
# typo3-versions: 10
# -
# php-versions: '7.4'
# typo3-versions: 12
#
# name: Functional (PHP ${{ matrix.php-versions }}, TYPO3 ${{ matrix.typo3-versions }})
# steps:
# -
# uses: actions/checkout@v2
#
# -
# name: Validate composer.json
# run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerValidate
#
# -
# name: Cache composer dependencies
# uses: actions/cache@v1
# with:
# path: ~/.composer/cache
# key: php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}
#
# -
# name: Install composer dependencies
# run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerInstall
#
# -
# name: Automated Functional Testing
# run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s functional
- uses: actions/checkout@v4
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
composer.lock
/var
/Build/.phpunit.result.cache
/Build/testing-docker/.env
/Build/testing-docker/.env
/vendor
.php-cs-fixer.cache
public
Loading

0 comments on commit 08d3073

Please sign in to comment.