Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update extension to be compatible with TYPO3 13 #13

Merged
merged 9 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading