Skip to content

PHP Tests

PHP Tests #844

Workflow file for this run

name: PHP Tests
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [8.2, 8.3]
name: PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: vendor/bin/phpunit ./tests --coverage-text