Skip to content

Less tests (#3)

Less tests (#3) #39

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
tests:
strategy:
fail-fast: true
matrix:
php:
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
- 8.4
symfony:
- ^3.4
- ^4.4
- ^5.4
name: 'PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install symfony/flex
run: |
composer require --dev symfony/flex --ansi --no-progress --no-interaction --no-install --no-interaction --no-scripts
rm composer.lock
- name: Lock Symfony version in composer.json
run: composer config extra.symfony.require '${{ matrix.symfony }}' --ansi --no-interaction --no-scripts
- name: Install dependencies
run: |
set -eo pipefail
composer install --ansi --prefer-dist --no-interaction --no-scripts
- name: PHPUnit
run: vendor/bin/phpunit