Skip to content

Merge pull request #131 from derhansen/task/bugfixes #43

Merge pull request #131 from derhansen/task/bugfixes

Merge pull request #131 from derhansen/task/bugfixes #43

Workflow file for this run

name: Unit tests
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
php: ['7.4', '8.0', '8.1']
typo3: ['^11.5']
runs-on: ubuntu-latest
name: PHP ${{ matrix.php }}, TYPO3 ${{ matrix.typo3 }}
steps:
- uses: actions/checkout@v1
- name: Set up PHP Version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Declare required TYPO3 version
run: |
composer require --no-update --dev typo3/cms-core ${{ matrix.typo3 }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run unit tests
run: .Build/bin/phpunit --colors -c Tests/Build/UnitTests.xml
- name: Run PHP lint
run: find . -name \*.php ! -path "./.Build/*" ! -path "./public/*" ! -path "./vendor/*" | xargs -n1 php -d display_errors=stderr -l