Skip to content

[RELEASE] Release v2.1.1 #84

[RELEASE] Release v2.1.1

[RELEASE] Release v2.1.1 #84

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-20.04]
php: [7.4]
typo3: ['^10.4', '^11.5']
include:
- os: ubuntu-20.04
php: 8.0
typo3: '^11.5'
name: P${{ matrix.php }} - T${{ matrix.typo3 }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-typo3-${{ matrix.typo3 }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: intl, mbstring, pdo_sqlite
coverage: none
- name: Install dependencies
run: composer require "typo3/cms-core:${{ matrix.typo3 }}" --prefer-dist --no-progress --no-interaction
- name: Check PHP syntax errors
run: find . -name \*.php ! -path "./.Build/*" -print0 | xargs -0 -n1 -P4 php -d display_errors=stderr -n -l > /dev/null
- name: Execute unit tests
run: .Build/bin/phpunit --colors -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit/
env:
TYPO3_PATH_WEB: $PWD/.Build/public
# - name: Execute functional tests
# run: .Build/bin/phpunit --colors -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml Tests/Functional/
# env:
# TYPO3_PATH_WEB: $PWD/.Build/public
# typo3DatabaseDriver: pdo_sqlite