11name : ci
22
3- on : [" pull_request", " push" ]
3+ on : [' pull_request', ' push' ]
44
55jobs :
66 php-cs-fixer :
77 name : PHP CS Fixer (PHP ${{ matrix.php }})
88
99 runs-on : ubuntu-latest
1010
11- strategy :
12- matrix :
13- php :
14- - ' 8.1'
15- fail-fast : false
16-
1711 steps :
1812 - name : Checkout
19- uses : actions/checkout@v2
13+ uses : actions/checkout@v3
2014
2115 - name : Setup PHP
2216 uses : shivammathur/setup-php@v2
2317 with :
24- php-version : ${{ matrix.php }}
18+ php-version : ' 8.2 '
2519 tools : php-cs-fixer, cs2pr
2620
2721 - name : Run PHP CS Fixer
@@ -32,20 +26,14 @@ jobs:
3226
3327 runs-on : ubuntu-latest
3428
35- strategy :
36- matrix :
37- php :
38- - ' 8.1'
39- fail-fast : false
40-
4129 steps :
4230 - name : Checkout
43- uses : actions/checkout@v2
31+ uses : actions/checkout@v3
4432
4533 - name : Setup PHP
4634 uses : shivammathur/setup-php@v2
4735 with :
48- php-version : ${{ matrix.php }}
36+ php-version : ' 8.2 '
4937 tools : composer
5038
5139 - name : Run Composer
@@ -55,57 +43,59 @@ jobs:
5543 run : ./vendor/bin/psalm --output-format=github
5644
5745 tests :
58- name : " tests"
46+ name : tests
5947
60- runs-on : ${{ matrix.operating-system }}
48+ runs-on : ubuntu-latest
6149
6250 strategy :
6351 matrix :
6452 dependencies :
65- - " lowest"
66- - " highest"
53+ - lowest
54+ - highest
6755 php-version :
68- - " 8.1"
69- operating-system :
70- - " ubuntu-latest"
56+ - ' 8.1'
57+ - ' 8.2'
58+ exclude :
59+ - php-version : ' 8.1'
60+ dependencies : lowest
7161
7262 steps :
73- - name : " checkout"
74- uses : " actions/checkout@v2 "
63+ - name : checkout
64+ uses : actions/checkout@v3
7565
76- - name : " installing PHP"
77- uses : " shivammathur/setup-php@v2"
66+ - name : installing PHP
67+ uses : shivammathur/setup-php@v2
7868 with :
79- php-version : " ${{ matrix.php-version }}"
69+ php-version : ${{ matrix.php-version }}
8070 ini-values : memory_limit=-1
8171 tools : composer:v2
8272
83- - name : " caching dependencies"
84- uses : " actions/cache@v2 "
73+ - name : caching dependencies
74+ uses : actions/cache@v3
8575 with :
8676 path : |
8777 ~/.composer/cache
8878 vendor
89- key : " php-${{ matrix.php-version }}-${{ matrix.operating-system }}"
90- restore-keys : " php-${{ matrix.php-version }}-${{ matrix.operating-system }}"
79+ key : php-${{ matrix.php-version }}-${{ matrix.operating-system }}
80+ restore-keys : php-${{ matrix.php-version }}-${{ matrix.operating-system }}
9181
92- - name : " installing lowest dependencies"
82+ - name : installing lowest dependencies
9383 if : ${{ matrix.dependencies == 'lowest' }}
94- run : " composer update --prefer-lowest --no-interaction --no-progress"
84+ run : composer update --prefer-lowest --no-interaction --no-progress
9585
96- - name : " installing highest dependencies"
86+ - name : installing highest dependencies
9787 if : ${{ matrix.dependencies == 'highest' }}
98- run : " composer update --no-interaction --no-progress"
88+ run : composer update --no-interaction --no-progress
9989
100- - name : " installing phpunit "
101- run : " php vendor/bin/simple-phpunit install"
90+ - name : installing PHPUnit
91+ run : php vendor/bin/simple-phpunit install
10292
103- - name : " running tests"
93+ - name : running tests
10494 if : ${{ matrix.dependencies == 'lowest' }}
10595 env :
10696 SYMFONY_DEPRECATIONS_HELPER : disabled=1
107- run : " php vendor/bin/simple-phpunit"
97+ run : php vendor/bin/simple-phpunit
10898
109- - name : " running tests"
99+ - name : running tests
110100 if : ${{ matrix.dependencies == 'highest' }}
111- run : " php vendor/bin/simple-phpunit"
101+ run : php vendor/bin/simple-phpunit
0 commit comments