Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Release 11.0.0 #597

Merged
merged 36 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
62f4b2d
[FEATURE] Implemented base structure for the whole build and testing …
RinyVT Oct 1, 2024
8647b39
Merge branch 'main' of github.com:Yoast/Yoast-SEO-for-TYPO3 into feat…
RinyVT Oct 15, 2024
46d2e03
[FEATURE] Added functional and unit test for VisibilityChecker, fixed…
RinyVT Oct 15, 2024
4cc30d4
[BUGFIX] Requirement on phpunit 10 to make sure PHP8 attributes can b…
RinyVT Oct 16, 2024
907dbc9
[BUGFIX] Removed displayDetailsOnPhpunitDeprecations from phpunit xml…
RinyVT Oct 16, 2024
a05104b
[FEATURE] Removed the old urlToCheck hook and replaced it with a new …
RinyVT Oct 23, 2024
852c5db
[FEATURE] Added dg/bypass-finals dev requirement to test final classe…
RinyVT Oct 23, 2024
ffab25a
[FEATURE] Updated all underlying Yoast libraries, added script to fet…
RinyVT Nov 8, 2024
4f35439
[BUGFIX] Removed php 8.0 from github actions to prevent old phpunit r…
RinyVT Nov 14, 2024
68697bc
[BUGFIX] Fixed language labels within ModeSwitcher components
RinyVT Dec 18, 2024
9607e4b
[FEATURE] Production build of the Javascript and CSS assets
RinyVT Dec 18, 2024
5e4eeb2
[TASK] Moved hideYoastInPageModule check within VisibilityChecker to …
RinyVT Dec 18, 2024
7d83656
[BUGFIX] Corrected the supported TYPO3 versions within README.md
RinyVT Dec 18, 2024
bb628c6
[FEATURE] Added code coverage with Coveralls by introducing php-cover…
RinyVT Dec 18, 2024
6d25008
[TASK] Restructured AdvancedRobots functionality
RinyVT Dec 23, 2024
ec4f7e2
[BUGFIX] Fixed the get_cache_timeout within StructuredDataProviderMan…
RinyVT Jan 6, 2025
af5a9fc
[BUGFIX] Fixed namespace of AdvancedRobotsGenerator within Services.y…
RinyVT Jan 6, 2025
d27fb22
[TASK] Split up ContentParser to multiple classes and interfaces
RinyVT Jan 6, 2025
7c44363
Merge branch 'main' of github.com:Yoast/Yoast-SEO-for-TYPO3 into feat…
RinyVT Jan 28, 2025
6fb98e6
[BUGFIX] Optimized code of TypoScriptStructuredDataProvider
RinyVT Jan 28, 2025
7e12065
[TASK] Updated documentation to replace the old urlToCheck hook with …
RinyVT Jan 28, 2025
ec86c77
[BUGFIX] Fixed CSP issues in Cornerstone form element and Dashboard b…
RinyVT Jan 28, 2025
ccf3e41
[BUGFIX] Ajax Calls for saveScores and prominentWords have the correc…
RinyVT Jan 29, 2025
9784471
[BUGFIX] All languages mode now shows preview from default language, …
RinyVT Jan 29, 2025
447bf2e
[BUGFIX] Remove the php-version from github action ter release to use…
RinyVT Jan 29, 2025
3ce9a5f
[TASK] Remove unnecessary Cornerstone fluid template, is now generate…
RinyVT Jan 30, 2025
fed07f1
[BUGFIX] Optimized Dashboard backend module, optimized images used an…
RinyVT Jan 30, 2025
5bf4c74
[FEATURE] Added Flesch reading score to Insights, updated Prominent w…
RinyVT Feb 3, 2025
95dc957
[FEATURE] Added Reading Time and Word Count to the Insights
RinyVT Feb 3, 2025
6e09ab6
[BUGFIX] Added javascript translations to InternalLinkingSuggestion a…
RinyVT Feb 3, 2025
9cf3b4b
[BUGFIX] Fixed dependency injection for the MetaTag generators by set…
RinyVT Feb 4, 2025
a6b4888
[TASK] Added sitepackage within Build directory to use for manual and…
RinyVT Feb 4, 2025
37af7b5
Merge branch 'main' of github.com:Yoast/Yoast-SEO-for-TYPO3 into feat…
RinyVT Feb 4, 2025
1cc7a8d
[TASK] Updated CHANGELOG.md
RinyVT Feb 4, 2025
b9b7abc
[FEATURE] Implemented new way of getting the correct language researc…
RinyVT Feb 9, 2025
b5e8f54
[BUGFIX] og_image and twitter_image now have the correct foreign_matc…
RinyVT Feb 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
67 changes: 0 additions & 67 deletions .Build/.php-cs-fixer.php

This file was deleted.

12 changes: 0 additions & 12 deletions .Build/phpstan.cms12.neon

This file was deleted.

Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .ddev/commands/host/docs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

docker-compose -f .ddev/docker-compose.docs.yaml up docs
docker compose -f .ddev/docker-compose.docs.yaml up docs
11 changes: 11 additions & 0 deletions .ddev/commands/web/composer-install-sitepackage
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

valid_versions=("11" "12" "13")

if [[ ! " ${valid_versions[@]} " =~ " $1 " ]]; then
echo "Invalid version. Please use one of the following: ${valid_versions[@]}"
exit 1
fi

composer config repositories.sitepackage path ../../$EXTENSION_KEY/Build/extensions/sitepackage -d /var/www/html/v$1
composer req yoast-seo-for-typo3/sitepackage:^1.0 -n -d /var/www/html/v$1
10 changes: 10 additions & 0 deletions .ddev/commands/web/composer-remove-sitepackage
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

valid_versions=("11" "12" "13")

if [[ ! " ${valid_versions[@]} " =~ " $1 " ]]; then
echo "Invalid version. Please use one of the following: ${valid_versions[@]}"
exit 1
fi

composer remove yoast-seo-for-typo3/sitepackage -n -d /var/www/html/v$1
39 changes: 0 additions & 39 deletions .github/workflows/ci.yml

This file was deleted.

6 changes: 1 addition & 5 deletions .github/workflows/ter.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ jobs:
if ! [[ ${{ github.ref }} =~ ^refs/tags/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$ ]]; then
exit 1
fi
- name: Set up PHP Version
run: |
sudo update-alternatives --set php /usr/bin/php8.0
php -v

- name: Update Composer
run: |
Expand All @@ -46,4 +42,4 @@ jobs:
echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}

- name: Publish to TER
run: TYPO3_API_USERNAME=${{ secrets.TYPO3_API_USERNAME }} TYPO3_API_PASSWORD=${{ secrets.TYPO3_API_PASSWORD }} TYPO3_API_TOKEN=$(awk '/Access token:(.*)/ { print $3 }' token.txt) TYPO3_EXCLUDE_FROM_PACKAGING=./.Build/ExcludeFromPackaging.php vendor/bin/tailor ter:publish --comment "Check https://github.com/Yoast/Yoast-SEO-for-TYPO3/blob/master/CHANGELOG.md for the latest changes." ${{ steps.get-version.outputs.version }} yoast_seo
run: TYPO3_API_USERNAME=${{ secrets.TYPO3_API_USERNAME }} TYPO3_API_PASSWORD=${{ secrets.TYPO3_API_PASSWORD }} TYPO3_API_TOKEN=$(awk '/Access token:(.*)/ { print $3 }' token.txt) TYPO3_EXCLUDE_FROM_PACKAGING=./Build/ExcludeFromPackaging.php vendor/bin/tailor ter:publish --comment "Check https://github.com/Yoast/Yoast-SEO-for-TYPO3/blob/main/CHANGELOG.md for the latest changes." ${{ steps.get-version.outputs.version }} yoast_seo
80 changes: 80 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Tests

on: [push, pull_request]

jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3']
typo3: ['11', '12', '13']
composerInstall: ['composerInstallLowest', 'composerInstallHighest']
include:
- typo3: '11'
php: '8.1'
composerInstall: 'composerInstallLowest'
- typo3: '11'
php: '8.1'
composerInstall: 'composerInstallHighest'
- typo3: '12'
php: '8.1'
composerInstall: 'composerInstallLowest'
- typo3: '12'
php: '8.1'
composerInstall: 'composerInstallHighest'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Composer validate
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s composerValidate

- name: Install dependencies
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s ${{ matrix.composerInstall }}

- name: Composer normalize
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s composerNormalize -n

- name: Lint PHP
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s lint

- name: CGL
run: Build/Scripts/runTests.sh -n -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s cgl -n

- name: PHPStan
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s phpstan -e "--error-format=github"

- name: Functional tests
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s functional

- name: Unit tests
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s unit

- name: Functional tests coverage
if: matrix.php == '8.2' && matrix.typo3 == '13' && matrix.composerInstall == 'composerInstallHighest'
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s unit -x -e "--coverage-php=.Build/coverage/functional.cov"

- name: Unit tests coverage
if: matrix.php == '8.2' && matrix.typo3 == '13' && matrix.composerInstall == 'composerInstallHighest'
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s unit -x -e "--coverage-php=.Build/coverage/unit.cov"

- name: Composer require phpunit/phpcov for merging the code coverage
if: matrix.php == '8.2' && matrix.typo3 == '13' && matrix.composerInstall == 'composerInstallHighest'
run: Build/Scripts/runTests.sh -t ${{ matrix.typo3 }} -p ${{ matrix.php }} -s composer require --dev phpunit/phpcov

- name: Merge coverage
if: matrix.php == '8.2' && matrix.typo3 == '13' && matrix.composerInstall == 'composerInstallHighest'
run: ./.Build/bin/phpcov merge --clover=build/logs/clover.xml .Build/coverage

- name: Upload coverage
if: matrix.php == '8.2' && matrix.typo3 == '13' && matrix.composerInstall == 'composerInstallHighest'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
export PATH="$(composer config -g home)/vendor/bin:$PATH"
php-coveralls --coverage_clover=build/logs/clover.xml -v
16 changes: 7 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ grunt/node_modules
*.po
vendor
composer.lock
.php_cs.cache
yarn.lock
.Build/*
!.Build/ExcludeFromPackaging.php
!.Build/.php-cs-fixer.php
!.Build/.phplint.yml
!.Build/phpstan.cms11.neon
!.Build/phpstan.cms12.neon
!.Build/phpstan.cms13.neon
.php-cs-fixer.cache
.Build
Documentation-GENERATED-temp
/public
.phplint.cache
.cache
composer.json.testing
var
*.map
plugin.css
23 changes: 23 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
use TYPO3\CodingStandards\CsFixerConfig;

$config = CsFixerConfig::create();
/// TODO: This construction can be removed when 11 support is dropped
if (method_exists($config, 'setParallelConfig')) {
$config->setParallelConfig(ParallelConfigFactory::detect());
} else {
// Old TYPO3 config standards so manually add some rules
$config->addRules([
'single_line_empty_body' => true
]);
}

// TODO: This construction can be removed when 11 support is dropped
$config->addRules([
'php_unit_test_case_static_method_calls' => false,
]);

$config->getFinder()->in('Classes')->in('Configuration')->in('Tests');
return $config;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
'tests',
'vendor',
'.Build',
'grunt'
'Build',
'grunt',
],
'files' => [
'.gitignore',
Expand Down Expand Up @@ -57,6 +58,6 @@
'travis.yml',
'webpack.config.js',
'webpack.mix.js',
'yarn.lock'
]
'yarn.lock',
],
];
Loading