feat(orc-3198): allow to assert entity with properties #60
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: ~ | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: | |
- '8.1' | |
- '8.2' | |
- '8.3' | |
coverage: ['none'] | |
symfony-versions: | |
- '4.4.*' | |
- '5.4.*' | |
- '6.0.*' | |
- '6.2.*' | |
- '7.0.*' | |
exclude: | |
- php: '8.1' | |
symfony-versions: '7.0.*' | |
include: | |
- php: '7.4' | |
symfony-versions: '^4.4' | |
coverage: 'none' | |
- php: '7.4' | |
symfony-versions: '^5.4' | |
coverage: 'none' | |
- php: '8.0' | |
symfony-versions: '^4.4' | |
coverage: 'none' | |
- php: '8.0' | |
symfony-versions: '^5.4' | |
coverage: 'none' | |
- description: 'Log Code Coverage' | |
php: '8.2' | |
coverage: 'xdebug' | |
symfony-versions: '^7.0' | |
name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony-versions }} ${{ matrix.description }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.composer/cache/files | |
key: ${{ matrix.php }}-${{ matrix.symfony-versions }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: ${{ matrix.coverage }} | |
- name: Add PHPUnit matcher | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Set composer cache directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache composer | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.symfony-versions }}-composer-${{ hashFiles('composer.json') }} | |
restore-keys: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.symfony-versions }}-composer | |
- name: Update Symfony version | |
if: matrix.symfony-versions != '' | |
run: | | |
composer require symfony/config:${{ matrix.symfony-versions }} --no-update --no-scripts | |
composer require symfony/http-client:${{ matrix.symfony-versions }} --no-update --no-scripts | |
composer require symfony/dependency-injection:${{ matrix.symfony-versions }} --no-update --no-scripts | |
composer require symfony/http-kernel:${{ matrix.symfony-versions }} --no-update --no-scripts | |
composer require symfony/routing:${{ matrix.symfony-versions }} --no-update --no-scripts | |
- name: Install dependencies | |
run: composer install | |
- name: Add doctrine/orm | |
run: composer require --no-progress --no-interaction --prefer-dist doctrine/orm:^2.0 | |
- name: Run PHPUnit tests | |
run: composer phpunit | |
if: matrix.coverage == 'none' | |
- name: PHPUnit tests and Log Code coverage | |
run: vendor/bin/phpunit --coverage-clover=coverage.xml | |
if: matrix.coverage == 'xdebug' | |
- name: Run codecov | |
uses: codecov/codecov-action@v1 | |
if: matrix.coverage == 'xdebug' && matrix.php == '8.3' && matrix.symfony-versions == '^7.0' | |
with: | |
file: './coverage.xml' | |
fail_ci_if_error: true |