Skip to content

Commit

Permalink
[FEATURE] Implemented base structure for the whole build and testing …
Browse files Browse the repository at this point in the history
…process, executed updated php-cs-fixer settings on all files, restructured lots of classes to make them ready for testing (WIP)
  • Loading branch information
RinyVT committed Oct 10, 2024
1 parent 80ff266 commit f3deff2
Show file tree
Hide file tree
Showing 113 changed files with 3,043 additions and 1,730 deletions.
67 changes: 0 additions & 67 deletions .Build/.php-cs-fixer.php

This file was deleted.

Binary file modified .DS_Store
Binary file not shown.
39 changes: 0 additions & 39 deletions .github/workflows/ci.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,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
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tests

on: [push, pull_request]

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

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

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

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

- 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"
10 changes: 2 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ grunt/node_modules
*.po
vendor
composer.lock
.php_cs.cache
.php-cs-fixer.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
.Build
Documentation-GENERATED-temp
/public
.phplint.cache
10 changes: 10 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

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

$config = CsFixerConfig::create();
// @TODO 4.0 no need to call this manually
$config->setParallelConfig(ParallelConfigFactory::detect());
$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

0 comments on commit f3deff2

Please sign in to comment.