File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change 13
13
fail-fast : false
14
14
matrix :
15
15
php-version : ['8.1', '8.3']
16
+ dependencies : ['highest']
17
+ include :
18
+ - php-version : ' 8.1'
19
+ dependencies : ' lowest'
20
+ - php-version : ' 8.3'
21
+ dependencies : ' highest'
16
22
17
23
steps :
18
- - uses : actions/checkout@v3
24
+ - uses : actions/checkout@v4
19
25
20
26
- name : Setup PHP
21
27
uses : shivammathur/setup-php@v2
@@ -26,12 +32,10 @@ jobs:
26
32
coverage : pcov
27
33
28
34
- name : Composer install
29
- run : |
30
- if [[ ${{ matrix.prefer-lowest == 'prefer-lowest' }} ]]; then
31
- composer update --prefer-lowest --prefer-stable
32
- else
33
- composer update
34
- fi
35
+ uses : ramsey/composer-install@v2
36
+ with :
37
+ dependency-versions : ${{ matrix.dependencies }}
38
+ composer-options : ${{ matrix.composer-options }}
35
39
36
40
- name : Run PHPUnit
37
41
run : |
@@ -50,21 +54,21 @@ jobs:
50
54
runs-on : ubuntu-22.04
51
55
52
56
steps :
53
- - uses : actions/checkout@v3
57
+ - uses : actions/checkout@v4
54
58
55
59
- name : Setup PHP
56
60
uses : shivammathur/setup-php@v2
57
61
with :
58
62
php-version : ' 8.1'
59
63
extensions : mbstring, json, fileinfo
60
64
coverage : none
61
- tools : pecl
65
+ tools : pecl, cs2pr
62
66
63
67
- name : Composer install
64
- run : composer update --prefer-stable
68
+ run : composer install
65
69
66
70
- name : Run phpcs
67
- run : vendor/bin/phpcs --version && bin/phpcs --report=checkstyle
71
+ run : vendor/bin/phpcs --version && vendor/ bin/phpcs --report=checkstyle | cs2pr
68
72
69
73
- name : Run phpstan
70
74
run : vendor/bin/phpstan -V && vendor/bin/phpstan analyze --error-format=github
You can’t perform that action at this time.
0 commit comments