mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-25 10:56:13 +01:00
Commit graph

1104 commits

Author SHA1 Message Date
Mathias Bolt Lesniak
7297675809
[BUGFIX] Disable XDebug by default (#440)
Fixes #439
2022-04-21 16:55:24 +02:00
Oliver Klee
62e8c21596
[CLEANUP] Make a type annotation in a unit test more specific (#435)
This helps static code analysis.
2022-04-20 15:05:45 +02:00
Oliver Klee
2e31910c61
[FEATURE] Use Coveralls for the code coverage (#425)
Fixes #345
Closes #400
2022-04-15 18:47:18 +02:00
Oliver Klee
0a634def2d
[TASK] Sync the GitHub Actions job definitions (#424)
Having a consistent structure and order between the CI jobs and the
code coverage generation job makes understanding the GitHub Actions
configuration easier.

It also allows having a shared Composer cache between the non-coverage
jobs and the coverage job.
2022-04-15 14:35:33 +02:00
Oliver Klee
65c59cee1c
[TASK] Run unit tests before functional tests for coverage (#431)
We generally should run the faster tests first so that any possible
breakage occurs as soon as possible, hence providing faster feedback.
2022-04-14 18:13:33 +02:00
Oliver Klee
e1f04ba58b
[TASK] Switch to the TYPO3 Code of Conduct (#430)
Now that the TYPO3 community has a new code of conduct, we should
switch from the Contributor Covenant Code of Conduct to the
TYPO3 CoC.

Fixes #249
2022-04-14 18:11:50 +02:00
Oliver Klee
8204165d9c
[BUGFIX] Do not cache the .Build directory in GitLab CI (#432)
We must not cache this directory. If it is cached, this might cause
Composer to (re-)install dependency version that are not valid for
the current PHP version, which possibly might break the build.
2022-04-14 18:09:32 +02:00
Oliver Klee
a85d14b976
[TASK] Upgrade to Composer 2.3.0 (#416) 2022-04-13 16:15:13 +02:00
Oliver Klee
a98d32fdae
[TASK] Move the coverage directories (#427)
There is no need to have the code coverage data directly generated by
the tests run in a non-hidden directory. So now the code coverage is
recorded within `.Build/coverage`.

Only the merged coverage data still needs to be located in `build/logs`
as Coveralls (which we're planning to use) relies on this.
2022-04-13 16:14:25 +02:00
Oliver Klee
fcd0f60d1b
[CLEANUP] Sort the entries in the .gitignore (#428) 2022-04-13 16:13:48 +02:00
Oliver Klee
827337bdda
[CLEANUP] Always use name as first key for GitHub Action steps (#423) 2022-04-12 22:27:14 +02:00
Alexander Nitsche
fc5b861bcd
[TASK] Update docs (#404)
See c2bb63bead for further details.

The README.md should mostly only cover the abstract and links.

The composer commands are the core value of this extension. List
all commands in the documentation and copy the descriptions from
the `composer.json`. This lets the global search at docs.typo3.org
find these commands.

Remove superfluous Linters page, which is integrated now in the
Running page.

Use sentence case in page titles in order to conform to the
TYPO3 documentation standards.

The ambiguous :ts: text role has been removed to
not confuse the writer with typescript and typoscript.

Add the common extension destinations to `composer.json`.
(Packagist displays them in a prominent place.)
2022-04-12 19:00:11 +02:00
Mathias Bolt Lesniak
3ca00b78e4
[BUGFIX] Use executeQuery() in functional test example (#422)
This avoids potential false results in the tests because it doesn't add additional restrictions for starttime, endtime, deleted, and hidden.

Fixes #421
2022-04-11 14:15:43 +02:00
Mathias Bolt Lesniak
228a094cd7
[BUGFIX] Enable debugging in DDEV (#420)
Fixes #419
2022-04-08 16:36:42 +02:00
Alexander Nitsche
923ff398cb
[DOCS] Reference manual's start page with :doc:<manual>:Index (#418)
Adding the custom label `start` to the beginning of the manual's
Index.rst is redundant. Use :doc:`<manual>:Index` instead of
:ref:`<manual:start>` to refer to it.
2022-04-07 10:48:33 +02:00
Oliver Klee
7a813998b6 Revert "[TASK] Bump the code coverage generation to TYPO3 11LTS and PHP 8.1 (#417)"
This reverts commit fd2e9213ab.
2022-04-06 19:45:56 +02:00
Oliver Klee
fd2e9213ab
[TASK] Bump the code coverage generation to TYPO3 11LTS and PHP 8.1 (#417)
We should use the latest TYPO3 and PHP versions for code coverage
generation.
2022-04-06 19:39:58 +02:00
Oliver Klee
77b49997a4
[TASK] Upgrade the CI cache action (#412) 2022-04-03 02:26:04 +02:00
Oliver Klee
345e01e381
[CLEANUP] Drop an unnecessary field in a test (#413) 2022-04-03 02:25:42 +02:00
Oliver Klee
bd3731934f
[CLEANUP] Add generics annotation to the Tea repository (#414)
This helps static code analysis determine for which models the
repository is responsible.
2022-04-03 02:24:55 +02:00
Oliver Klee
869f348ce8
[CLEANUP] Make a type annotation more specific (#415) 2022-03-30 12:14:04 +02:00
Tobias Gaertner
3496732bd8
[BUGFIX] Remove folders Config and Tests from phpcpd call (#411) 2022-03-29 12:21:24 +02:00
Oliver Klee
14c6f6a48d
[CLEANUP] Sort the code style checks in the CI build (#406) 2022-03-24 18:00:39 +01:00
Oliver Klee
b9cfab39cc
[TASK] Upgrade the git checkout on CI to actions/checkout@v3 (#402) 2022-03-22 17:57:39 +01:00
Oliver Klee
d5b669a179
[TASK] Update the development dependencies (#401) 2022-03-11 17:16:23 +01:00
Oliver Klee
15b1e5a9f4
[FEATURE] Also run the tests with TYPO3 11LTS in GitHub Actions (#319) 2022-03-02 11:45:29 +01:00
Oliver Klee
a1a84a511f
[BUGFIX] Configure DI and avoid using ObjectManager in TYPO3 11LTS (#399)
`ObjectManager` is deprecated in V11.

Fixes #387
2022-03-02 02:07:25 +01:00
Oliver Klee
934f43572f
[CLEANUP] Use generics for Prophecy type annotations (#398) 2022-02-28 17:58:06 +01:00
Oliver Klee
d4c39d7f5a
[TASK] Add a description for the prepare-release Composer command (#397) 2022-02-25 11:36:30 +01:00
Oliver Klee
6b98478f58
[TASK] Make the Composer caches on CI more fine-grained (#393)
The installed Composer packages will be different depending on the
major TYPO3 version being tested and on the strategy for the
dependencies (highest, lowest). So it makes sense to have
separate Composer caches for these versions in order to avoid
cache misses.
2022-02-24 16:41:34 +01:00
Oliver Klee
4158161c9d
[BUGFIX] Remove duplicate entry from the code quality CI job (#394)
`json:lint` was there twice.
Also sort the code quality jobs the same way the corresponding tasks
are sorted in the `composer.json`.
2022-02-24 13:13:30 +01:00
Oliver Klee
d39727d718
[BUGFIX] Fix the trigger syntax in the CI builds (#395)
The CI workflow with predefined GitHub actions had an empty `on:`
element, which is invalid. Use the correct event for manually
triggered workflow runs instead.
2022-02-24 13:12:38 +01:00
Oliver Klee
4854d9983a
[CLEANUP] Always have the CI job name as first element (#391)
This helps human readers see what a job is about more quickly,
following the principle of having the heading as the first element
of a text.
2022-02-24 09:11:49 +01:00
Oliver Klee
79ba5f20d2
[TASK] Use an explicit CI matrix for the functional tests as well (#392)
This will allow use to have exceptions from the cross product of
the parameters more easily (e.g., using PHP 8 only for TYPO3 11LTS
onward).
2022-02-24 09:11:14 +01:00
Łukasz Uznański
9e00038119
[FEATURE] Enable php8.1 (#381) 2022-02-23 14:38:20 +01:00
Łukasz Uznański
73721545d7
[BUGFIX] Fix code coverage after switch to core testing framework (#390)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2022-02-20 16:31:48 +01:00
Oliver Klee
4f2c813d7f
[TASK] Switch to the core testing framework (#361)
The TYPO3 core testing framework has more person-power for maintenance
behind it compared to the nimut testing framework. So we should use that.
2022-02-20 15:18:46 +01:00
Oliver Klee
05a7e61208
[FEATURE] Add module definitions to the PhpStorm meta file (#388)
Copied from:
- https://review.typo3.org/c/Packages/TYPO3.CMS/+/73521
- https://review.typo3.org/c/Packages/TYPO3.CMS/+/73415

Fixes #382
2022-02-17 18:20:14 +01:00
Oliver Klee
a13e2f4598
[TASK] Remove an obsolete version switch from the TCA configuration (#389)
This version switch was releveant for TYPO3 8LTS.
2022-02-15 18:02:43 +01:00
Oliver Klee
3a13b2dea3
[BUGFIX] Stop using the vendor name for plugin registration (#385)
This has been deprecated in TYPO3 10.0:

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/10.0/Deprecation-87550-UseControllerClassesWhenRegisteringPluginsmodules.html

Fixes #383
2022-02-15 15:47:57 +01:00
Oliver Klee
da3390b992
[BUGFIX] Remove showRecordFieldList from the TCA (#386)
This entry was deprecated in TYPO3 10.3:
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/10.3/Feature-88901-RenderAllFieldsInElementInformationController.html

Fixes #384
2022-02-15 15:47:09 +01:00
Łukasz Uznański
77da462e8b
[TASK] Update phpstorm meta file according to core (#376)
Resolves: #369

Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.pl>
2022-02-11 21:15:56 +01:00
Łukasz Uznański
9a870876b3
[TASK] Drop v9 support in gitlab ci (#380)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.pl>
2022-02-11 21:12:54 +01:00
Łukasz Uznański
822bc5561e
[TASK] Drop TeaController functional test (#379)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.pl>
2022-02-11 21:11:30 +01:00
Tobias Gaertner
cc62f32a36
[BUGFIX] Fix some .gitignore entries (#375)
- `.php_cs.cache` file was renamed to `.php-cs-fixer.cache`
- `.phpunit.result.cache` missing in `.gitignore`
2022-02-04 15:09:17 +01:00
Łukasz Uznański
63bcf0da67
[TASK] Disable predefined github action scheduler run (#374)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2022-02-04 09:24:14 +01:00
Tobias Gaertner
c818970d6e
install and use wait-for-it for functional tests (#373)
It might happen, when starting the fuctional test that the database service container is not ready yet. 

This patch provides an extra timeout to wait for the service to make sure the test does not fail because of missing database.
2022-02-01 13:14:00 +01:00
Oliver Klee
c79986b614
[TASK] Drop the TYPO3 V9 badge (#372)
We should not advertise what we're not supporting anymore.
2022-01-27 17:08:08 +01:00
Tobias Gaertner
d26feda812
[BUGFIX] Avoid xargs error for empty project (#370)
The `xargs` shell command will throw an error if find will return an empty result.
Adding `-r` will prevent this error. 

Example: 
A project has no yml files.
- Before: The yaml-linting fails.
- With that patch: The yaml-linting succeed.
2022-01-27 14:14:02 +01:00
Oliver Klee
a999668f85
[BUGFIX] Avoid php-cs-fixer 3.5.0 (#371)
Version 3.5.0 has a bug concerning intersection types that breaks our
build.

Fixes #368
2022-01-26 18:25:46 +01:00