mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 09:50:49 +00:00
712174b300
* Update packages-tests github action to use latest phpdoc-parser * fix compat * [ci-review] Rector Rectify * update to use ExtendedMethodReflection Co-authored-by: GitHub Action <action@github.com>
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
# builds the content of https://github.com/rectorphp/rector-prefixed
|
|
# inspiration from https://github.com/phpstan/phpstan-src/blob/master/.github/workflows/phar.yml
|
|
name: Packages Tests
|
|
|
|
on:
|
|
pull_request: null
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
|
|
COMPOSER_ROOT_VERSION: "dev-main"
|
|
|
|
jobs:
|
|
packages_tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
repository_name:
|
|
# must be repository name, e.g. https://github.com/rectorphp/rector-nette
|
|
- rectorphp/rector-symfony
|
|
- rectorphp/rector-phpunit
|
|
- rectorphp/rector-doctrine
|
|
- rectorphp/rector-laravel
|
|
- rectorphp/rector-nette
|
|
- rectorphp/rector-cakephp
|
|
- rectorphp/rector-phpoffice
|
|
|
|
steps:
|
|
# see https://github.com/actions/checkout#usage
|
|
-
|
|
uses: "actions/checkout@v3"
|
|
with:
|
|
repository: ${{ matrix.repository_name }}
|
|
ref: "main"
|
|
|
|
-
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.1
|
|
coverage: none
|
|
|
|
- run: composer config minimum-stability dev
|
|
|
|
# test with current commit in a pull-request
|
|
-
|
|
run: composer require rector/rector-src dev-main#${{github.event.pull_request.head.sha}} --no-update
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
|
|
- run: composer install --ansi
|
|
|
|
- run: vendor/bin/phpunit
|