rector/.github/workflows/test_with_doctrine.yaml

38 lines
1.4 KiB
YAML
Raw Normal View History

name: Test With Doctrine
2020-01-11 00:51:16 +01:00
on:
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.4
2020-01-11 00:51:16 +01:00
coverage: none
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
2020-04-04 23:00:46 +02:00
# loads autoload-dev packages as well, there are utils that might be used later
2020-04-01 03:55:44 +02:00
git clone https://github.com/doctrine/orm.git --depth 1
2020-01-11 00:51:16 +01:00
# 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
2020-02-06 01:15:14 +01:00
rm orm/phpstan.neon.dist
2020-01-11 00:51:16 +01:00
# do not intall doctrine/orm phpstan, it conflicts with Retor's one
composer install -d orm --no-dev
2020-02-22 09:52:17 +01:00
- run: |
2020-02-22 11:24:58 +01:00
bin/rector process orm/lib --config ci/config/rector-doctrine.yaml --autoload-file orm/vendor/autoload.php