mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-24 03:56:12 +01:00
Commit graph

1122 commits

Author SHA1 Message Date
dependabot[bot]
bb6d2b97d2
Update typo3/testing-framework requirement from ^6.15.3 to ^6.16.5 (#468)
Updates the requirements on [typo3/testing-framework](https://github.com/TYPO3/testing-framework) to permit the latest version.
- [Release notes](https://github.com/TYPO3/testing-framework/releases)
- [Commits](https://github.com/TYPO3/testing-framework/compare/6.15.3...6.16.5)

---
updated-dependencies:
- dependency-name: typo3/testing-framework
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-28 11:27:53 +02:00
dependabot[bot]
abc1db7842
[TASK] Update codeception/codeception requirement from ^4.1.31 to ^4.2.1 (#463)
Updates the requirements on [codeception/codeception](https://github.com/Codeception/Codeception) to permit the latest version.
- [Release notes](https://github.com/Codeception/Codeception/releases)
- [Changelog](https://github.com/Codeception/Codeception/blob/5.0/CHANGELOG-4.x.md)
- [Commits](https://github.com/Codeception/Codeception/compare/4.1.31...4.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-27 12:16:39 +02:00
dependabot[bot]
b5e2aee4fa
[TASK] Update phpstan/phpstan requirement from ^1.6.2 to ^1.7.15 (#464)
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.7.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.6.2...1.7.15)

---
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>
2022-06-27 12:16:04 +02:00
dependabot[bot]
a9b4f377cd
[TASK] Update squizlabs/php_codesniffer requirement from ^3.6.2 to ^3.7.1 (#462)
Updates the requirements on [squizlabs/php_codesniffer](https://github.com/squizlabs/PHP_CodeSniffer) to permit the latest version.
- [Release notes](https://github.com/squizlabs/PHP_CodeSniffer/releases)
- [Commits](https://github.com/squizlabs/PHP_CodeSniffer/compare/3.6.2...3.7.1)

---
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>
2022-06-27 12:15:31 +02:00
Oliver Klee
7050a80c1e
[FEATURE] Configure Dependabot to update Composer dev dependencies (#461) 2022-06-27 12:07:37 +02:00
Oliver Klee
af0d77a7aa
[BUGFIX] Treat PHP versions in the GitHub CI configuration as strings (#459)
PHP version numbers need to be strings: If the version `8.0` were
treated as a number, the YAML parser would happily convert it to `8`,
hence dropping the minor version number.
2022-06-15 18:22:18 +02:00
Oliver Klee
25476a2a72
[TASK] Update Composer in ddev to version 2.3.7 (#460) 2022-06-15 18:22:06 +02:00
Oliver Klee
53e9d65a0a
[TASK] Upgrade the GitHub runners to Ubuntu 22.04 (#456)
Fixes #455
2022-06-15 16:26:43 +02:00
Oliver Klee
be40b3719e
[BUGFIX] Use full controller class name for plugin registration (#457)
This get the FE output of the plugin get to work in TYPO3 10LTS
and 11LTS.

Fixes #441
2022-06-15 16:15:04 +02:00
Oliver Klee
569fad3626
[CLEANUP] Remove type annotations for fields from the testing framework (#453)
As in these cases the type annotations from the base class are used,
we can avoid PHPStan warnings about discrepancies between our annotations
and the annotations from the testing framework for the corresponding
fields in the superclass.
2022-06-01 15:26:47 +02:00
Oliver Klee
b3e3c4e29d
[FEATURE] Add a Dependabot action for updating GitHub actions (#452)
With this configuration, GitHub's Dependabot will create PR
to update the versions of the GitHub Actions we are using in
our CI pipeline.
2022-05-23 14:45:35 +02:00
jpmschuler
518bae014e
[TASK] Move npm tools and config to default places (#445)
- Move npm tools and config to default places
- Remove now unnecessary config file parameter from npm scripts
- editorconfig and eslint config contradict, adapt editorconfig
- switch JS indent linting to TYPO3 coding standard of 2 spaces
- adapt composer scripts for new npm location
2022-05-18 17:17:45 +02:00
Oliver Klee
71a08a1c20
[BUGFIX] Mark the repository test as also covering the model (#436)
We currently can only test the lazy loading of the model image
with a functional test that retrieves a model from the database
via the repository.

So the functional test for the repository also needs to be marked as
covering the model class to make our code coverage correct.
2022-04-29 14:54:41 +02:00
Oliver Klee
f1a0fbef04
[CLEANUP] Use prepared statements for SQL queries in the tests (#443)
Also add another type check to help with debugging failed queries.
2022-04-29 14:27:47 +02:00
Oliver Klee
6d6b196426
[TASK] Reduce and reorder the badges in the README (#438)
Reorder the badges so the TYPO3 versions come first and the
CI information latest (ordered from user-relevant to
developer-relevant).

Drop some badges to get the badges to fit in one line again:

- Drop the counter for this month's downloads (as this number
  fluctuated too much during the month).

- Drop a duplicate badge.

- Drop the badge for the old CoC (as we now are using the TYPO3 CoC).

- Drop the "latest version" badge (as this tends to be unreliable).
2022-04-29 14:27:36 +02:00
Oliver Klee
029d402954
[TASK] Switch the code coverage collection on CI from 10LTS to 11LTS (#437) 2022-04-29 14:27:22 +02:00
Oliver Klee
14803e193c
[CLEANUP] Add a return type declaration to an anonymous function (#434) 2022-04-29 14:27:06 +02:00
Oliver Klee
e58c7fc150
[TASK] Bump the development dependencies (#442) 2022-04-27 16:00:28 +02:00
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