Skip to content
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
37 changes: 3 additions & 34 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
env:
TYPO3_EXTENSION_KEY: ${{ secrets.TYPO3_EXTENSION_KEY }}
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }}
permissions:
contents: write
Expand Down Expand Up @@ -63,32 +62,6 @@ jobs:
extensions: intl, mbstring, json, zip, curl
tools: composer:v2

- name: Prepare vendor folder and autoload configuration for TER upload
shell: bash
run: |
rm -rf vendor composer.lock composer.json.orig composer.json.pretty \
&& mv composer.json composer.json.orig \
&& composer init -n \
--type=project \
--license='GPL-2.0-or-later' \
--name=release/draft \
--description empty \
--author='release' \
&& composer config allow-plugins.php-http/discovery true \
&& composer require "deeplcom/deepl-php":"$( cat composer.json.orig | jq -r '.require."deeplcom/deepl-php"' )" \
&& rm -rf composer.lock \
vendor/composer \
vendor/nyholm \
vendor/php-http/multipart-stream-builder \
vendor/psr \
vendor/symfony \
vendor/autoload.php \
vendor/bin \
&& cat <<< $(jq --indent 4 '."autoload"."psr-4" += {"DeepL\\": "vendor/deeplcom/deepl-php/src", "Http\\Discovery\\": "vendor/php-http/discovery/src"}' composer.json.orig) > composer.json.pretty \
&& rm -rf composer.json \
&& mv composer.json.pretty composer.json \
&& rm -rf composer.json.orig

- name: Install tailor
run: composer global require typo3/tailor --prefer-dist --no-progress --no-suggest

Expand All @@ -103,7 +76,9 @@ jobs:
# Note that when release already exists for tag, only files will be uploaded and lets this acting as a
# fallback to ensure that a real GitHub release is created for the tag along with extension artifacts.
- name: Create release and upload artifacts in the same step
uses: softprops/action-gh-release@v2
# @todo Revert to release version when https://github.com/softprops/action-gh-release/issues/628 is fixed.
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631
# uses: softprops/action-gh-release@v2
if: ${{startsWith(github.ref, 'refs/tags/') }}
with:
name: "[RELEASE] ${{ env.version }}"
Expand All @@ -114,13 +89,7 @@ jobs:
LICENSE
fail_on_unmatched_files: true

# @todo Currently an issue exists with the TYPO3 Extension Repository (TER) tailor based uploads, which seems to
# be WAF related and the T3O TER Team working on. Allow this step to fail (continue on error) for now until
# issues has been sorted out.
# https://github.com/TYPO3/tailor/issues/82
- name: Publish to TER
# @todo Remove `continue-on-error` after upload with tailor has been fixed.
continue-on-error: true
run: |
php ~/.composer/vendor/bin/tailor ter:publish --comment "${{ env.terReleaseNotes }}" ${{ env.version }} \
--artefact=tailor-version-artefact/${{ env.DETECTED_EXTENSION_KEY }}_${{ env.version }}.zip
1 change: 1 addition & 0 deletions Tests/Functional/AbstractDeepLTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ abstract class AbstractDeepLTestCase extends FunctionalTestCase
*/
protected array $testExtensionsToLoad = [
'web-vision/deepl-base',
'web-vision/deeplcom-deepl-php',
'web-vision/deepltranslate-core',
__DIR__ . '/Fixtures/Extensions/test_services_override',
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ final class ContentElementsInContainerTest extends AbstractDeepLTestCase
protected array $testExtensionsToLoad = [
'b13/container',
'web-vision/deepl-base',
'web-vision/deeplcom-deepl-php',
'web-vision/deepltranslate-core',
__DIR__ . '/../Fixtures/Extensions/test_services_override',
__DIR__ . '/Fixtures/Extensions/test_container',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ final class TranslationWithModifiedTcaConfigurationTest extends AbstractDeepLTes
*/
protected array $testExtensionsToLoad = [
'web-vision/deepl-base',
'web-vision/deeplcom-deepl-php',
'web-vision/deepltranslate-core',
__DIR__ . '/../Fixtures/Extensions/test_services_override',
__DIR__ . '/Fixtures/Extensions/test_tca_override',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ final class LocalizationInlineRegressionTest extends AbstractDeepLTestCase
*/
protected array $testExtensionsToLoad = [
'web-vision/deepl-base',
'web-vision/deeplcom-deepl-php',
'web-vision/deepltranslate-core',
__DIR__ . '/../Fixtures/Extensions/test_services_override',
];
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@
"ext-curl": "*",
"ext-json": "*",
"ext-pdo": "*",
"deeplcom/deepl-php": "^1.10.1",
"typo3/cms-backend": "^12.4.2 || ^13.4",
"typo3/cms-core": "^12.4.2 || ^13.4",
"typo3/cms-extbase": "^12.4.2 || ^13.4",
"typo3/cms-fluid": "^12.4.2 || ^13.4",
"typo3/cms-setup": "^12.4.2 || ^13.4",
"web-vision/deepl-base": "1.*.*@dev"
"web-vision/deepl-base": "1.*.*@dev",
"web-vision/deeplcom-deepl-php": "^1.12.0"
},
"require-dev": {
"b13/container": "^2.3.6 || ^3.1.1",
Expand Down
11 changes: 1 addition & 10 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'fluid' => '12.4.0-13.4.99',
'setup' => '12.4.0-13.4.99',
'deepl_base' => '1.0.0-1.99.99',
'deeplcom_deeplphp' => '1.12.0-1.99.99',
],
'conflicts' => [
'recordlist_thumbnail' => '*',
Expand All @@ -33,14 +34,4 @@
'gridelements' => '*',
],
],
// @todo Autoload section in `ext_emconf.php` should not be needed anymore since TYPO3 v12, and in first test it
// showed to work without it. This should be verified debugging TYPO3 core to be really sure about that and
// making additional tests. Scheduled to be removed if removal can be considered safe.
'autoload' => [
'psr-4' => [
'WebVision\\Deepltranslate\\Core\\' => 'Classes',
'DeepL\\' => 'vendor/deeplcom/deepl-php/src',
'Http\\Discovery\\' => 'vendor/php-http/discovery/src',
],
],
];