Major release v3.0.0 #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Test | |
on: [push, pull_request] | |
jobs: | |
php-lint: | |
name: "PHP linter" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: [8.1, 8.2, 8.3] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: "Install PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php-versions }}" | |
- name: "Cache composer dependencies" | |
uses: actions/cache@v4 | |
with: | |
path: ~/.composer/cache | |
key: php-${{ matrix.php-versions }} | |
-composer-${{ hashFiles('composer.json') }} | |
restore-keys: | | |
php-${{ matrix.php-versions }}-composer- | |
- name: "Install composer dependencies" | |
run: composer install --no-progress | |
- name: "Run PHP lint" | |
run: "composer run-script test-php-lint" | |
php-cs-fixer: | |
name: "PHP-CS-Fixer" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: [8.3] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: "Install PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php-versions }}" | |
- name: "Cache composer dependencies" | |
uses: actions/cache@v4 | |
with: | |
path: ~/.composer/cache | |
key: php-${{ matrix.php-versions }} | |
-composer-${{ hashFiles('composer.json') }} | |
restore-keys: | | |
php-${{ matrix.php-versions }}-composer- | |
- name: "Install composer dependencies" | |
run: composer install --no-progress | |
- name: "Run PHP-CS-Fixer" | |
run: "composer run-script test-php-cs-fixer" | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
matrix: | |
variants: | |
- {typo3: 13, php: 8.3} | |
- {typo3: 13, php: 8.2} | |
- {typo3: 12, php: 8.3} | |
- {typo3: 12, php: 8.2} | |
- {typo3: 12, php: 8.1} | |
name: "Run tests with PHP ${{ matrix.variants.php }} | |
using TYPO3 ${{ matrix.variants.typo3 }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.variants.php }} | |
extensions: xml, mbstring, curl | |
- name: "Cache composer dependencies" | |
uses: actions/cache@v4 | |
with: | |
path: ~/.composer/cache | |
key: php-${{ matrix.variants.php }} | |
-typo3-${{ matrix.variants.typo3 }} | |
-composer-${{ hashFiles('composer.json') }} | |
restore-keys: | | |
php-${{ matrix.variants.php }} | |
-typo3-${{ matrix.variants.typo3 }} | |
-composer-${{ hashFiles('composer.json') }} | |
- name: "Install composer dependencies" | |
run: composer require typo3/minimal | |
"^${{ matrix.variants.typo3 }}" | |
--prefer-dist --no-progress --no-suggest | |
- name: "Run PHPStan tests" | |
run: composer run-script test-phpstan | |
# todo: move to separate task? | |
- name: "Run Functional tests" | |
run: composer run-script test-functional |