Skip to content

Allow optional jQuery in Validators and Widgets. #6170

Allow optional jQuery in Validators and Widgets.

Allow optional jQuery in Validators and Widgets. #6170

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: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached
PHPUNIT_COMMAND: --verbose --exclude-group db,wincache,xcache,zenddata --coverage-clover=coverage.xml --colors=always
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [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: 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:
file: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}