2020-01-22 19:00:37 +01:00
|
|
|
name: Test With Doctrine
|
2020-01-11 00:51:16 +01:00
|
|
|
|
|
|
|
on:
|
2020-01-22 19:00:37 +01:00
|
|
|
pull_request: null
|
2020-01-11 00:51:16 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test_with_doctrine:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: shivammathur/setup-php@v1
|
|
|
|
with:
|
|
|
|
php-version: 7.3
|
|
|
|
coverage: none
|
2020-01-22 19:00:37 +01:00
|
|
|
|
2020-01-11 00:51:16 +01:00
|
|
|
- name: Clone doctrine/orm and install safe dependencies
|
|
|
|
run: |
|
|
|
|
# cannot install dev deps (--no-dev), because doctrine/orm might inherit from them in different version
|
|
|
|
composer install --no-progress --no-dev
|
|
|
|
git clone https://github.com/doctrine/orm.git
|
|
|
|
|
|
|
|
# older version have breaking "object" type
|
|
|
|
composer require doctrine/cache:^1.10 -d orm --no-update
|
|
|
|
|
|
|
|
# remove phsptan config to prevent rector loading configs
|
|
|
|
rm phpstan.neon
|
|
|
|
|
|
|
|
# do not intall doctrine/orm phpstan, it conflicts with Retor's one
|
|
|
|
composer install -d orm --no-dev
|
|
|
|
|
2020-01-22 19:00:37 +01:00
|
|
|
- run: bin/rector process orm/lib --set dead-code --autoload-file orm/vendor/autoload.php
|