Skip to content

Remove invalid @property annotations and fix property descriptions #6079

Remove invalid @property annotations and fix property descriptions

Remove invalid @property annotations and fix property descriptions #6079

Workflow file for this run

name: build
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
phpunit:
name: PHP ${{ matrix.php }}
env:
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi"
EXTENSIONS: ${{ matrix.php < 8.0 && 'apc' || 'apcu' }}, curl, dom, imagick, intl, mbstring, mcrypt, memcached
PHPUNIT_COMMAND: --verbose --exclude-group db,wincache,xcache,zenddata --coverage-clover=coverage.xml --colors=always
XDEBUG_MODE: coverage
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
steps:
- name: Generate french locale.
run: sudo locale-gen fr_FR.UTF-8
- name: Checkout.
uses: actions/checkout@v5
- name: Install PHP.
uses: shivammathur/setup-php@v2
with:
coverage: ${{ matrix.php < 8.1 && 'xdebug' || 'pcov' }}
extensions: ${{ env.EXTENSIONS }}
ini-values: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC', session.save_path="${{ runner.temp }}"
php-version: ${{ matrix.php }}
tools: pie
- name: Install Memcached.
uses: niden/actions-memcached@v7
- name: Update composer.
run: composer self-update
- name: Install dependencies with composer.
run: composer update $DEFAULT_COMPOSER_FLAGS ${{ matrix.php == 8.5 && '--ignore-platform-reqs' || '' }}
- name: Run tests with PHPUnit.
run: vendor/bin/phpunit ${{ env.PHPUNIT_COMMAND }}
- name: Upload coverage to Codecov.
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml