Skip to content

Fix functional tests and HasForbiddenUsers bug #4

Fix functional tests and HasForbiddenUsers bug

Fix functional tests and HasForbiddenUsers bug #4

Workflow file for this run

name: CI
on:
push:
branches:
- 'release/**'
- 'main'
pull_request:
jobs:
unit-tests:
name: Unit Tests (PHP ${{ matrix.php }}, TYPO3 ${{ matrix.typo3 }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '8.3'
typo3: '^14.0'
- php: '8.4'
typo3: '^14.0'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: intl, mbstring, pdo_sqlite
tools: composer:v2
- name: Install dependencies
run: |
composer require typo3/cms-core:${{ matrix.typo3 }} --no-update
composer install --no-progress --prefer-dist
- name: Run Unit Tests
run: vendor/bin/phpunit -c phpunit.xml
functional-tests:
name: Functional Tests (PHP ${{ matrix.php }}, TYPO3 ${{ matrix.typo3 }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '8.3'
typo3: '^14.0'
- php: '8.4'
typo3: '^14.0'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: intl, mbstring, pdo_sqlite
tools: composer:v2
- name: Install dependencies
run: |
composer require typo3/cms-core:${{ matrix.typo3 }} --no-update
composer install --no-progress --prefer-dist
- name: Run Functional Tests
env:
typo3DatabaseDriver: pdo_sqlite
run: vendor/bin/phpunit -c phpunit.functional.xml
code-quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: intl, mbstring
tools: composer:v2
- name: Install dependencies
run: composer install --no-progress --prefer-dist
- name: PHP Lint
run: find Classes Tests -name '*.php' -print0 | xargs -0 -n1 php -l