Skip to content

Commit

Permalink
feat(o10r-symfony-template-154): Upgrade doctrine/orm to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiidonii committed Jun 4, 2024
1 parent cf244a7 commit cde079f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
doctrine-orm-versions: '^2.17'
coverage: xdebug

name: Test with PHP ${{ matrix.php }} Symfony ${{ matrix.symfony-versions }} ${{ matrix.description }}
name: Test with PHP ${{ matrix.php }} Symfony ${{ matrix.symfony-versions }} Doctrine ${{ matrix.doctrine-orm-versions }} ${{ matrix.description }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
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
- name: Update package versions
if: matrix.symfony-versions != ''
run: |
composer require symfony/config:${{ matrix.symfony-versions }} --no-update --no-scripts
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,37 @@ jobs:
run: vendor/bin/phpcs

phpstan:
name: PHPStan
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.3'
coverage: [ 'none' ]
doctrine-orm-versions:
- '^2.17'
- '^3.0'

name: Static analyse with PHP ${{ matrix.php }} Doctrine ${{ matrix.doctrine-orm-versions }} ${{ matrix.description }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2

- name: Update package versions
if: matrix.symfony-versions != ''
run: |
composer require doctrine/orm:${{ matrix.doctrine-orm-versions }} --no-update --no-scripts -W
- name: Install dependencies
run: composer install --no-progress --no-interaction --prefer-dist

- name: Run script
run: vendor/bin/phpstan analyse
run: |
php tools/prepare-configs.php;
vendor/bin/phpstan analyse
composer-validate:
name: Composer validate
Expand Down

0 comments on commit cde079f

Please sign in to comment.