77 name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
88 runs-on : ${{ matrix.operating-system }}
99 strategy :
10+ fail-fast : false
1011 matrix :
11- operating-system : ['ubuntu-18.04 ']
12+ operating-system : ['ubuntu-latest ']
1213 php-versions : ['7.0']
13- phpunit-versions : ['7.5.20']
1414 steps :
1515 - name : Checkout
16- uses : actions/checkout@v2
16+ uses : actions/checkout@v4
1717
1818 - name : Setup PHP
1919 uses : shivammathur/setup-php@v2
2020 with :
2121 php-version : ${{ matrix.php-versions }}
2222 extensions : mbstring, intl
23- ini-values : post_max_size=256M, max_execution_time=180
24- tools : psalm, phpunit:${{ matrix.phpunit-versions }}
25-
26- - name : Install dependencies
27- run : composer self-update --1; composer install
23+ ini-values : max_execution_time=600, memory_limit=256M, error_reporting=-1, display_errors=On
24+ coverage : none
2825
29- - name : PHPUnit tests
30- uses : php-actions/phpunit@v2
31- with :
32- memory_limit : 256M
26+ - name : Remove psalm
27+ run : composer remove --dev vimeo/psalm
3328
34- moderate :
35- name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
36- runs-on : ${{ matrix.operating-system }}
37- strategy :
38- matrix :
39- operating-system : ['ubuntu-latest']
40- php-versions : ['7.1', '7.2', '7.3']
41- phpunit-versions : ['latest']
42- steps :
43- - name : Checkout
44- uses : actions/checkout@v2
45-
46- - name : Setup PHP
47- uses : shivammathur/setup-php@v2
48- with :
49- php-version : ${{ matrix.php-versions }}
50- extensions : mbstring, intl, sodium
51- ini-values : post_max_size=256M, max_execution_time=180
52- tools : psalm, phpunit:${{ matrix.phpunit-versions }}
53-
54- - name : Install dependencies
55- run : composer install
29+ - name : Install Composer dependencies
30+ run : composer update
5631
5732 - name : PHPUnit tests
58- uses : php-actions/phpunit@v2
59- timeout-minutes : 30
60- with :
61- memory_limit : 256M
33+ run : vendor/bin/phpunit
6234
63- modern :
35+ moderate- modern :
6436 name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
6537 runs-on : ${{ matrix.operating-system }}
6638 strategy :
6739 matrix :
6840 operating-system : ['ubuntu-latest']
69- php-versions : ['7.4', '8.0', '8.1']
70- phpunit-versions : ['latest']
41+ php-versions : ['7.1', '7.2', '7.3', '7. 4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5 ']
42+
7143 steps :
7244 - name : Checkout
73- uses : actions/checkout@v2
45+ uses : actions/checkout@v4
7446
7547 - name : Setup PHP
7648 uses : shivammathur/setup-php@v2
7749 with :
7850 php-version : ${{ matrix.php-versions }}
7951 extensions : mbstring, intl, sodium
80- ini-values : post_max_size=256M, max_execution_time=180
81- tools : psalm, phpunit:${{ matrix.phpunit-versions }}
52+ ini-values : error_reporting=-1, display_errors=On
53+ coverage : none
8254
83- - name : Install dependencies
84- run : composer install
55+ - name : Install Composer dependencies
56+ uses : " ramsey/ composer- install@v3 "
8557
8658 - name : PHPUnit tests
87- uses : php-actions/phpunit@v2
88- timeout-minutes : 30
89- with :
90- memory_limit : 256M
91-
92- - name : Install Psalm
93- run : composer require --dev vimeo/psalm:^4
94-
95- - name : Static Analysis
96- run : vendor/bin/psalm
59+ run : vendor/bin/phpunit
0 commit comments