Skip to content

Merge pull request #57 from allan-simon/patch-1 #204

Merge pull request #57 from allan-simon/patch-1

Merge pull request #57 from allan-simon/patch-1 #204

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
max-parallel: 10
fail-fast: false
matrix:
php: ['8.2', '8.3']
sf_version: ['7.0.*']
include:
- php: '8.0'
sf_version: '5.4.*'
- php: '8.1'
sf_version: '6.4.*'
steps:
- name: Set up PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
coverage: none
tools: flex
- name: Checkout code
uses: actions/checkout@v2
- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
- name: Run tests
env:
PHP_VERSION: ${{ matrix.php }}
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
run: ./vendor/bin/phpunit
lowest:
name: Lowest deps
runs-on: ubuntu-latest
steps:
- name: Set up PHP
uses: shivammathur/[email protected]
with:
php-version: 8.0
coverage: pcov
- name: Checkout code
uses: actions/checkout@v2
- name: Download dependencies
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable --prefer-lowest
- name: Run tests
env:
PHP_VERSION: '8.0'
run: ./vendor/bin/phpunit -v --coverage-text