Skip to content

Support association in entity field (#33) #226

Support association in entity field (#33)

Support association in entity field (#33) #226

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types:
- opened
- synchronize
- reopened
- ready_for_review
jobs:
build:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
strategy:
fail-fast: false
matrix:
php:
- 8.2
- 8.3
symfony:
- 6.4.*
- 7.*
dependencies: [ lowest, highest ]
name: 'PHP ${{ matrix.php }} + Symfony ${{ matrix.symfony }} + ${{ matrix.dependencies }} dependencies'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
tools: flex
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }}
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-
- name: Install dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: --prefer-dist
- name: Run checks lowest
if: ${{ matrix.dependencies == 'lowest' }}
run: composer test
- name: Run checks highest
if: ${{ matrix.dependencies == 'highest' }}
run: composer check