mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 09:50:49 +00:00
41dfd36407
* [PHPStan] Update to PHPStan 0.12.99 * add BackedEnum to stub * final touch: comment * final touch: move to next if * final touch: clean up
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
name: Along Other Packages
|
|
|
|
on:
|
|
pull_request: null
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
along_other_packages:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php_version: ['7.1', '7.2', '7.3', '7.4', '8.0']
|
|
commands:
|
|
-
|
|
name: 'Composer Dependency'
|
|
install: composer require symfony/console:2.8 --ansi
|
|
run: vendor/bin/rector list --debug --ansi
|
|
|
|
-
|
|
name: 'PHP Parser 3.1'
|
|
install: composer require nikic/php-parser:^3.1 --ansi
|
|
|
|
-
|
|
name: 'Along PHPStan'
|
|
install: composer require phpstan/phpstan:^0.12.99 --dev --ansi
|
|
|
|
name: "PHP ${{ matrix.php_version }}"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php_version }}
|
|
coverage: none
|
|
|
|
# wait for deploy to packagist
|
|
- run: sleep 70
|
|
|
|
- run: |
|
|
mkdir standalone
|
|
cd standalone
|
|
|
|
- run: |
|
|
# run
|
|
composer require rector/rector:dev-main --dev --ansi
|
|
${{ matrix.commands.install }}
|
|
working-directory: standalone
|
|
|
|
-
|
|
run: vendor/bin/rector list --ansi
|
|
working-directory: standalone
|