Skip to content

Commit

Permalink
[TASK:T12] Fix GitHub - Actions :: basics
Browse files Browse the repository at this point in the history
Relates: #3376
  • Loading branch information
dkd-kaehm committed Oct 28, 2022
1 parent dc7e5a4 commit 483b17d
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 38 deletions.
18 changes: 1 addition & 17 deletions Build/Test/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,7 @@ echo "Using extension path $EXTENSION_ROOTPATH"
echo "Using package path $TYPO3_PATH_PACKAGES"
echo "Using web path $TYPO3_PATH_WEB"

# Install TYPO3 sources
if [[ $TYPO3_VERSION = *"main"* ]]; then
composer config minimum-stability dev
fi

if ! composer require --dev --update-with-dependencies --prefer-source \
typo3/cms-core:"$TYPO3_VERSION" \
typo3/cms-backend:"$TYPO3_VERSION" \
typo3/cms-recordlist:"$TYPO3_VERSION" \
typo3/cms-fluid:"$TYPO3_VERSION" \
typo3/cms-fluid-styled-content:"$TYPO3_VERSION" \
typo3/cms-frontend:"$TYPO3_VERSION" \
typo3/cms-extbase:"$TYPO3_VERSION" \
typo3/cms-reports:"$TYPO3_VERSION" \
typo3/cms-scheduler:"$TYPO3_VERSION" \
typo3/cms-tstemplate:"$TYPO3_VERSION" \
typo3/cms-install:"$TYPO3_VERSION"
if ! composer tests:setup
then
echo "The test environment could not be installed by composer as expected. Please fix this issue."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion Build/Test/cibuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ else
echo "Some files are not compliant to TYPO3 Coding Standards"
echo "Please fix the files listed above."
echo "Tip for auto fix: "
echo " composer install && composer exec php-cs-fixer fix"
echo " TYPO3_VERSION="${TYPO3_VERSION}" composer tests:setup && composer t3:standards:fix"
exit 1
else
echo "The code is TYPO3 Coding Standards compliant! Great job!"
Expand Down
1 change: 0 additions & 1 deletion Classes/ViewHelpers/TranslateViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class TranslateViewHelper extends AbstractViewHelper
* Register required keys for translation
*
* @see \TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper::initializeArguments
* @return void
*/
public function initializeArguments(): void
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Integration/GarbageCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class GarbageCollectorTest extends IntegrationTest
/**
* @var array
*/
protected $coreExtensionsToLoad = [
protected array $coreExtensionsToLoad = [
'extensionmanager',
'scheduler',
];
Expand Down
2 changes: 1 addition & 1 deletion Tests/Integration/IndexQueue/RecordMonitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class RecordMonitorTest extends IntegrationTest
/**
* @var array
*/
protected $coreExtensionsToLoad = [
protected array $coreExtensionsToLoad = [
'extensionmanager',
'scheduler',
];
Expand Down
11 changes: 3 additions & 8 deletions Tests/Integration/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ abstract class IntegrationTest extends FunctionalTestCase
{
use SiteBasedTestTrait;

protected $coreExtensionsToLoad = [
protected array $coreExtensionsToLoad = [
'scheduler',
'fluid_styled_content',
];
Expand All @@ -81,7 +81,7 @@ abstract class IntegrationTest extends FunctionalTestCase
/**
* @var array
*/
protected $testExtensionsToLoad = [
protected array $testExtensionsToLoad = [
'typo3conf/ext/solr',
];

Expand All @@ -97,17 +97,12 @@ abstract class IntegrationTest extends FunctionalTestCase
/**
* @var array
*/
protected $configurationToUseInTestInstance = [
protected array $configurationToUseInTestInstance = [
'SYS' => [
'exceptionalErrors' => E_WARNING | E_RECOVERABLE_ERROR | E_DEPRECATED | E_USER_DEPRECATED,
],
];

/**
* @var string
*/
protected $instancePath;

/**
* If set to true in subclasses, the import of configured root pages will be skipped.
*
Expand Down
2 changes: 1 addition & 1 deletion Tests/Integration/Task/EventQueueWorkerTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class EventQueueWorkerTaskTest extends IntegrationTest
/**
* @var array
*/
protected $coreExtensionsToLoad = [
protected array $coreExtensionsToLoad = [
'extensionmanager',
'scheduler',
];
Expand Down
2 changes: 1 addition & 1 deletion Tests/Integration/Task/IndexQueueWorkerTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class IndexQueueWorkerTaskTest extends IntegrationTest
/**
* @var array
*/
protected $coreExtensionsToLoad = [
protected array $coreExtensionsToLoad = [
'scheduler',
];

Expand Down
2 changes: 1 addition & 1 deletion Tests/Integration/Task/ReIndexTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ReIndexTaskTest extends IntegrationTest
/**
* @var array
*/
protected $coreExtensionsToLoad = [
protected array $coreExtensionsToLoad = [
'scheduler',
];

Expand Down
2 changes: 1 addition & 1 deletion Tests/Unit/UnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
abstract class UnitTest extends UnitTestCase
{
protected $resetSingletonInstances = true;
protected bool $resetSingletonInstances = true;

protected function setUp(): void
{
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"docs": "https://docs.typo3.org/p/apache-solr-for-typo3/solr/main/en-us/"
},
"require": {
"php": "^7.4.0 || ^8.0",
"php": "^8.1",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-simplexml": "*",
"solarium/solarium": "6.2.7",
"typo3/cms-backend": "*",
"typo3/cms-core": "^12.0.0 || dev-main",
"typo3/cms-core": "^12",
"typo3/cms-extbase": "*",
"typo3/cms-fluid": "*",
"typo3/cms-frontend": "*",
Expand All @@ -40,7 +40,7 @@
"typo3/coding-standards": ">=0.5.0",
"phpunit/phpunit": "^9.5",
"phpspec/prophecy-phpunit":"*",
"typo3/testing-framework": "^6.12",
"typo3/testing-framework": "dev-main",
"typo3/cms-fluid-styled-content": "*",
"scrutinizer/ocular": "*",
"sclable/xml-lint": "*"
Expand All @@ -58,7 +58,7 @@
"autoload-dev": {
"psr-4": {
"ApacheSolrForTypo3\\Solr\\Tests\\": "Tests/",
"TYPO3\\CMS\\Core\\Tests\\": ".Build/Web/typo3/sysext/core/Tests/"
"TYPO3\\CMS\\Core\\Tests\\": ".Build/Web/vendor/typo3/cms-core/Tests/"
}
},
"minimum-stability": "stable",
Expand All @@ -82,7 +82,7 @@
"tests:restore-git": "echo \"Retore composer.json to initial state:\" && git checkout composer.json",
"tests:env": [
"if [ -z ${TYPO3_VERSION+x} ]; then >&2 echo \"Can not proceed, because env var TYPO3_VERSION is not set\"; exit 1; else echo \"Setup test environment for TYPO3 ${TYPO3_VERSION}\"; fi",
"if [ \"${TYPO3_VERSION#*dev}\" != \"dev\" ]; then $COMPOSER_BINARY config minimum-stability dev; fi"
"if [ $(echo $TYPO3_VERSION | grep -c dev) -eq 1 ]; then $COMPOSER_BINARY config minimum-stability dev; fi"
],
"tests:setup": [
"@tests:env",
Expand Down

0 comments on commit 483b17d

Please sign in to comment.