mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-29 02:26:11 +01:00
Commit graph

1164 commits

Author SHA1 Message Date
dependabot[bot]
92608fdd98
Update seld/jsonlint requirement from ^1.10.0 to ^1.10.1 (#1080)
Updates the requirements on [seld/jsonlint](https://github.com/Seldaek/jsonlint) to permit the latest version.
- [Release notes](https://github.com/Seldaek/jsonlint/releases)
- [Changelog](https://github.com/Seldaek/jsonlint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Seldaek/jsonlint/compare/1.10.0...1.10.1)

---
updated-dependencies:
- dependency-name: seld/jsonlint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-19 05:57:32 +00:00
Stefan Bürk
8a2e0cbcff
[TASK] Add -b option to select container binary (#1076)
TYPO3 core introduced the `-b` option for the
`Build/Scripts/runTests.sh` script to provide
the ability to select the container binary,
`docker` or `podman` and enforces podman for
CI (GitLab runner) runs after switching the
Core CI infrastructure from Docker-In-Docker
to Podman-In-Podman.

The `ext:tea` adoption of the `runTests.sh`
has been already adopted on a intermediate
version and dropped the `docker-compose`
based container definitions. Along with
other minor prepration patches this allows
now to add the container binary selection
also.

This change modifies `runTests.sh` to

* add the `-b` option with a corresponding
  helptext addition and allows `podman` or
  `docker` - whereas the latter is the default.

* integrates the determined and fixed issues
  with tty in CI environments by setting some
  paramater for the commands based on the CI
  detection (GitHub Action or GitLab Runner).

Note:	The implemention for `ext:tea` does not
        enforce hardcoed the `podman` binary for
        CI environments. If no user selection is
        provided, it fallbacks to `docker` for
        all environments.

It's worth to mention that the implementation to
deal properly with user namespacing and permission
handling on mountend volumns it's required to have
at least `podman 4.x` installed. Earlier versions
does not support the required handlinging and options.

Minor moving of variable declaration are done as a
drive-by change.

The `docsGenerate` suite has been guard and display
a concrete message when executed using the `podman`
binary.

Resolves: #1075
Related: #969
2023-12-18 23:41:14 +01:00
dependabot[bot]
193087a319
Update eslint requirement from ^8.55.0 to ^8.56.0 (#1077)
Updates the requirements on [eslint](https://github.com/eslint/eslint) to permit the latest version.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.55.0...v8.56.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 05:17:11 +00:00
Oliver Klee
f26677a0ae
[BUGFIX] Avoid JSON-linting the Composer cache directory (#1074)
Also use stricter exclusion paths to avoid skipping JSON files that
we actually want to lint.

This change speeds up JSON lint a lot in cases where Composer from
within `runTests.sh` has been used (which creates the `.cache/`
directory).

Fixes #1046
2023-12-16 23:55:34 +01:00
Łukasz Uznański
503177b41a
[TASK] Add php8.3 to functional tests gitlab (#1064)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2023-12-15 16:49:23 +01:00
Łukasz Uznański
deded4d20d
[TASK] Migrate xliff lint on gitlab (#1073)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2023-12-15 16:34:37 +01:00
Łukasz Uznański
5f51604f14
[TASK] Add xliff linting locally (#1071)
Resolves: #346
2023-12-15 16:17:39 +01:00
Stefan Bürk
95c2801755
[TASK] Remove acceptance test traces from runTests.sh (#1069)
The adopted `Build/Scripts/runTests.sh` contains traces
of acceptance and acceptanceInstall, mainly in the help
text.

The occurances are left-overs from the adoption phase
and are now removed due to the fact they are currently
not available at all.

Resolves: #1068
Related: #969
2023-12-15 14:20:34 +01:00
Stefan Bürk
ec56abf6aa
[TASK] Use only ghcr.io for core-testing images (#1070)
TYPO3 provides core testing docker images which
the core itself uses for the Core testing. Core
stopped publishing new image builds to the docker
hub already and only publish to the GitHub container
registry in the future.

Therefore, the image prefix switch between CI and
local does not make sense anymore.

This change removes the image prefix variables and
use public images directly from docker hub and the
core testing images from the TYPO3 `ghcr.io` repo.

Resolves: #1066
Related: #969
2023-12-15 14:13:46 +01:00
Łukasz Uznański
7fa63d8f02
Drop obsolete tasks from documentation (#1067)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2023-12-15 14:05:21 +01:00
Stefan Bürk
2619a344a8
[TASK] Merge dbms version flags into -i (#1065)
Until now three different dbmns version options
has been used like the TYPO3 core in older days.

This change aligns with the TYPO3 core and merge
these options together into one flag, keeping
`-i` for all dbms vendors now and dropping `-k`
for postgres and `-j` for mysql specific versions.

The help text is modified to align with the changed
options.

Resolves: #1062
Related: #969
2023-12-15 13:33:22 +01:00
Oliver Klee
efbc9335a6
[TASK] Drop obsolete Doctrine DBAL development dependency (#1047)
As we are now using CSV assertions in the functional tests instead of
direct database queries, we do not require Doctrine DBAL in the
tests anymore.
2023-12-15 12:37:54 +01:00
Oliver Klee
6b5c76ac08
[CLEANUP] Simplify the PHPStan baseline generation script (#1045)
It is not necessary to specify the file name of the baseline file
if we're using the default file.
2023-12-15 12:09:42 +01:00
Oliver Klee
fb19dd4a9a
[TASK] Drop the obsolete app-dir Composer configuration (#1048) 2023-12-15 11:46:19 +01:00
Oliver Klee
c4578a6e94
[TASK] Drop useless Composer scripts (#1056)
Some Composer scripts do not make sense as they call other scripts
that only make sense when called separately. This change removes
those multi-scripts that are practically useless.
2023-12-15 11:45:51 +01:00
dependabot[bot]
8cda75819a
Update eslint-plugin-import requirement from ^2.29.0 to ^2.29.1 (#1061)
Updates the requirements on [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) to permit the latest version.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.29.0...v2.29.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 06:01:26 +00:00
dependabot[bot]
588be248a5
Update phpstan/phpstan requirement from ^1.10.49 to ^1.10.50 (#1060)
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.11.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.10.49...1.10.50)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 12:57:49 +00:00
Oliver Klee
ef350037c2
[FOLLOWUP] Fix path of created tests directory (#1059)
The document root for the tests is `.Build/Web`, not `.Build/public`.

Followup to #1058
2023-12-12 16:35:47 +01:00
Oliver Klee
e9716a3c84
[BUGFIX] Create required directories before running the functional tests (#1058)
This prevents the occasional "directory could not be created" failure
when running the functional tests on CI.

Fixes #1053
2023-12-12 15:09:32 +01:00
dependabot[bot]
f05eb79117
Update phpstan/phpstan requirement from ^1.10.48 to ^1.10.49 (#1057)
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.11.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.10.48...1.10.49)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-12 11:09:40 +00:00
dependabot[bot]
d35cefbf80
Update friendsofphp/php-cs-fixer requirement from ^3.41.0 to ^3.41.1 (#1055)
Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.41.0...v3.41.1)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 11:45:54 +00:00
dependabot[bot]
fe109ed055
Update prettier requirement from ^3.1.0 to ^3.1.1 (#1054)
Updates the requirements on [prettier](https://github.com/prettier/prettier) to permit the latest version.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.1.0...3.1.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 05:30:47 +00:00
Nikita Hovratov
16d197d640
Remove leftover select_key (#1052)
select_key does not exist anymore in the Core and can be safely removed,
2023-12-10 01:07:37 +01:00
dependabot[bot]
5087790a64
Update friendsofphp/php-cs-fixer requirement from ^3.40.2 to ^3.41.0 (#1051)
Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.40.2...v3.41.0)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-09 09:44:31 +00:00
dependabot[bot]
7ce9a48da6
Update phpstan/phpstan requirement from ^1.10.47 to ^1.10.48 (#1050)
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.11.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.10.47...1.10.48)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 15:45:34 +00:00
dependabot[bot]
6dc3d7fce2
Update squizlabs/php_codesniffer requirement from ^3.7.2 to ^3.8.0 (#1049)
Updates the requirements on [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) to permit the latest version.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.7.2...3.8.0)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 15:44:45 +00:00
870261a5f5
[TASK] Add contribution guide (#1044) 2023-12-05 16:26:37 +01:00
Łukasz Uznański
a92a131e17
[BUGFIX] Fix functional tests with PHP 8.2 on GitLab CI (#1043) 2023-12-05 11:03:40 +01:00
dependabot[bot]
7d043d3399
Update eslint-config-prettier requirement from ^9.0.0 to ^9.1.0 (#1042)
Updates the requirements on [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) to permit the latest version.
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v9.0.0...v9.1.0)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-03 16:45:02 +00:00
dependabot[bot]
b81d482120
Update eslint requirement from ^8.54.0 to ^8.55.0 (#1041)
Updates the requirements on [eslint](https://github.com/eslint/eslint) to permit the latest version.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.54.0...v8.55.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-03 16:42:20 +00:00
dependabot[bot]
c5d00173ef
Update friendsofphp/php-cs-fixer requirement from ^3.40.0 to ^3.40.2 (#1040)
Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.40.0...v3.40.2)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-03 16:39:56 +00:00
dependabot[bot]
8150f2e5fd
Update phpunit/phpunit requirement from ^9.6.14 to ^9.6.15 (#1038)
Updates the requirements on [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) to permit the latest version.
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.15/ChangeLog-9.6.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.6.14...9.6.15)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 17:39:40 +00:00
dependabot[bot]
df6dbe4608
Update phpstan/phpstan requirement from ^1.10.46 to ^1.10.47 (#1037)
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.11.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.10.46...1.10.47)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 15:53:12 +00:00
dependabot[bot]
57c2145ec5
Update phpunit/phpunit requirement from ^9.6.13 to ^9.6.14 (#1036)
Updates the requirements on [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) to permit the latest version.
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.14/ChangeLog-9.6.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.6.13...9.6.14)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 15:50:55 +00:00
dependabot[bot]
7846839862
Update phpstan/phpstan requirement from ^1.10.45 to ^1.10.46 (#1035)
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.11.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.10.45...1.10.46)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-28 15:17:02 +00:00
Łukasz Uznański
9ffbf82d3e
[TASK] Add php8.3 unit tests to gitlab ci (#1033)
Depends on: #1032

Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2023-11-27 18:19:25 +01:00
Łukasz Uznański
5998d5699b
[FEATURE] Add PHP 8.3 lint to GitLab CI (#1032)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2023-11-27 18:14:17 +01:00
Oliver Klee
98a0f66a04
[CLEANUP] Drop extraneous whitespace in a Composer script (#1030) 2023-11-27 16:47:51 +01:00
Stefan Bürk
ba486fcee3
[BUGFIX] Remove invalid argment quuoting in runTests.sh (#1029)
`Build/Scripts/runTests.sh` provides a test-suite `composer`
and allows passing additional command and options directly
down to the composer command.

Due to an invalid quoting the passed options were broking
and not regonized by the `composer` binary.

This change removes the superflous argument passing
and therefore allows passing additional options to the
`composer` command.

Resolves: #967
2023-11-27 15:35:33 +00:00
Karsten Nowak
190e5f924a
[BUGFIX] Add allow empty base line for phpstan check (#1018)
Fixes #1003
2023-11-27 15:29:58 +00:00
Karsten Nowak
a5ab4c9e1e
[TASK] Use caching for PHP-CS-Fixer (#1027)
Fixes #689
2023-11-27 16:09:08 +01:00
dependabot[bot]
7f16356cab
Update phpstan/phpstan requirement from ^1.10.44 to ^1.10.45 (#1026)
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.11.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.10.44...1.10.45)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-27 15:05:02 +00:00
555c43e18b
[FEATURE] Add first functional test using a request (#1021)
That way the extension serves as an example on how to use the TYPO3
internal requests provided by the TYPO3 testing framework.
Those can be used as integration tests.
They are also often easier to set up on existing projects and allow to
refactor the code base, compared to functional and unit tests.

Resolves: #859
2023-11-27 14:18:04 +01:00
Łukasz Uznański
8587bc8389
[FEATURE] Provide Polish translation for tea (#1020)
Resolves: #1014
2023-11-27 14:17:08 +01:00
58971754c4
[TASK] Add missing test case for fetching none existing tea (#1017)
Dedicated test cases were added in the past.
This test case was not added yet.

Resolves: #858
2023-11-27 12:36:42 +00:00
Łukasz Uznański
53b0abd977
[FEATURE] Make records timeable and hidable (#989)
Resolves: #553
2023-11-27 13:31:13 +01:00
dependabot[bot]
5958d6d117
Update saschaegerer/phpstan-typo3 requirement from ^1.9.0 to ^1.9.1 (#1019)
Updates the requirements on [saschaegerer/phpstan-typo3](https://github.com/sascha-egerer/phpstan-typo3) to permit the latest version.
- [Release notes](https://github.com/sascha-egerer/phpstan-typo3/releases)
- [Commits](https://github.com/sascha-egerer/phpstan-typo3/compare/1.9.0...1.9.1)

---
updated-dependencies:
- dependency-name: saschaegerer/phpstan-typo3
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-27 12:13:38 +00:00
687af8b8a3
[BUGFIX] Wrong GitLab job name (#1015)
The job name did not match the file name and the actual content of the
job.

Relates: #976
2023-11-27 12:51:38 +01:00
Łukasz Uznański
2c3ec6afc2
[TASK] Upgrade DDEV (#991)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2023-11-27 12:48:25 +01:00
Oliver Klee
afd6a00b1a
[TASK] Output the job name in the GitLab CI builds (#1013)
Some GitLab jobs seem to run commands that do not belong in the
the corresponding job.

This change outputs the job name in CI in order to help us track
this down.

Related: #976
2023-11-27 12:43:26 +01:00