Skip to content

bench configuration for actions #8

bench configuration for actions

bench configuration for actions #8

Workflow file for this run

name: Build and Test
on:
push:
branches: [ main, develop]
pull_request:
branches: [ main, develop]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.4','8','8.1','8.2']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, mysqli, gd
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: PHPUnit tests
run: ./vendor/bin/phpunit -c ./phpunit.xml.dist --coverage-clover coverage.xml
- name: Bench
run: php ./bench.php