Use event's ObjectManager instead of injected EntityManager in Doctri… #5
This file contains hidden or 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: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test: | |
| name: PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: | |
| - 8.2 | |
| - 8.3 | |
| - 8.4 | |
| symfony: | |
| - 6.4.* | |
| - 7.4.* | |
| - 8.0.* | |
| exclude: | |
| # Symfony 8.0 requires PHP 8.4+ | |
| - php: '8.2' | |
| symfony: '8.0.*' | |
| - php: '8.3' | |
| symfony: '8.0.*' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP and install Symfony Flex globally | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none | |
| extensions: mbstring, openssl, sodium | |
| tools: flex | |
| - name: Install dependencies | |
| env: | |
| SYMFONY_REQUIRE: ${{ matrix.symfony }} | |
| run: composer update --prefer-dist --no-progress --no-interaction | |
| - name: Run tests | |
| run: vendor/bin/phpunit |