-
-
Notifications
You must be signed in to change notification settings - Fork 687
59 lines (47 loc) · 1.75 KB
/
along_other_packages.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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.2', '7.3', '7.4', '8.0', '8.1']
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:^1.1.1 --dev --ansi
name: "PHP ${{ matrix.php_version }}"
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: none
# wait for deploy to packagist
- run: sleep 40
- run: |
mkdir standalone
cd standalone
- run: |
# run
yes | composer init --name some/prj
composer config minimum-stability dev
composer config prefer-stable true
composer require rector/rector:dev-main --dev --ansi
${{ matrix.commands.install }}
working-directory: standalone
-
run: vendor/bin/rector list --ansi
working-directory: standalone