2021-05-11 16:11:30 +00:00
|
|
|
name: Along Other Packages
|
2021-05-09 20:15:43 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request: null
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2021-05-11 16:11:30 +00:00
|
|
|
along_other_packages:
|
2021-05-09 20:15:43 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-03-24 21:23:19 +00:00
|
|
|
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
|
2021-05-09 20:15:43 +00:00
|
|
|
commands:
|
|
|
|
-
|
|
|
|
name: 'Composer Dependency'
|
2021-05-11 16:11:30 +00:00
|
|
|
install: composer require symfony/console:2.8 --ansi
|
2021-05-09 20:15:43 +00:00
|
|
|
run: vendor/bin/rector list --debug --ansi
|
|
|
|
|
2021-05-11 16:11:30 +00:00
|
|
|
-
|
|
|
|
name: 'PHP Parser 3.1'
|
|
|
|
install: composer require nikic/php-parser:^3.1 --ansi
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
-
|
|
|
|
name: 'Along PHPStan'
|
2021-11-07 06:24:52 +00:00
|
|
|
install: composer require phpstan/phpstan:^1.1.1 --dev --ansi
|
2021-05-09 20:15:43 +00:00
|
|
|
|
|
|
|
name: "PHP ${{ matrix.php_version }}"
|
|
|
|
|
|
|
|
steps:
|
2023-06-26 07:17:54 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-09 20:15:43 +00:00
|
|
|
|
|
|
|
- uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php_version }}
|
|
|
|
coverage: none
|
|
|
|
|
2021-05-11 16:11:30 +00:00
|
|
|
# wait for deploy to packagist
|
2022-06-06 09:42:21 +00:00
|
|
|
- run: sleep 40
|
2021-05-11 16:11:30 +00:00
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
- run: |
|
|
|
|
mkdir standalone
|
|
|
|
cd standalone
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
# run
|
2021-10-28 14:43:59 +00:00
|
|
|
yes | composer init --name some/prj
|
|
|
|
composer config minimum-stability dev
|
|
|
|
composer config prefer-stable true
|
2021-05-09 20:15:43 +00:00
|
|
|
composer require rector/rector:dev-main --dev --ansi
|
|
|
|
${{ matrix.commands.install }}
|
2021-05-11 16:11:30 +00:00
|
|
|
working-directory: standalone
|
2021-05-09 20:15:43 +00:00
|
|
|
|
|
|
|
-
|
2021-05-11 16:11:30 +00:00
|
|
|
run: vendor/bin/rector list --ansi
|
|
|
|
working-directory: standalone
|