Skip to content

Merge pull request #150 from greg0ire/analysis-Bo0RZr #14

Merge pull request #150 from greg0ire/analysis-Bo0RZr

Merge pull request #150 from greg0ire/analysis-Bo0RZr #14

name: "Continuous Integration"
on:
pull_request:
branches:
- "legacy-stable"
- "stable"
- "unstable"
push:
branches:
- "legacy-stable"
- "stable"
- "unstable"
env:
fail-fast: true
jobs:
phpunit:
name: "PHPUnit"
runs-on: "ubuntu-22.04"
strategy:
matrix:
php-version:
- "7.2"
- "7.4"
- "8.0"
dependencies:
- "highest"
include:
- php-version: "7.2"
dependencies: "lowest"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 2
- name: "Install PHP with PCOV"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
coverage: "pcov"
ini-values: "zend.assertions=1"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "${{ inputs.composer-options }}"
- name: "Run PHPUnit for PHP 7x"
if: "${{ startsWith(matrix.php-version, '7') }}"
run: >
SYMFONY_DEPRECATIONS_HELPER="max[self]=0"
SYMFONY_PHPUNIT_VERSION=8.5.13
vendor/bin/simple-phpunit
- name: "Run PHPUnit for PHP 8.0"
if: "${{ ! startsWith(matrix.php-version, '7') }}"
run: >
SYMFONY_DEPRECATIONS_HELPER="max[self]=0"
SYMFONY_PHPUNIT_VERSION=9.5.28
vendor/bin/simple-phpunit