1
1
name : CI
2
2
3
- on :
4
- push :
5
- branches : [ master ]
6
- pull_request :
7
- branches : [ master ]
3
+ on : [push, pull_request]
8
4
9
5
jobs :
10
- phpunit :
6
+ old :
11
7
name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
12
8
runs-on : ${{ matrix.operating-system }}
13
9
strategy :
14
10
matrix :
15
11
operating-system : ['ubuntu-latest']
16
- php-versions : ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
17
-
12
+ php-versions : ['7.2', '7.3']
13
+ phpunit-versions : ['latest']
18
14
steps :
19
15
- name : Checkout
20
16
uses : actions/checkout@v4
@@ -24,11 +20,36 @@ jobs:
24
20
with :
25
21
php-version : ${{ matrix.php-versions }}
26
22
extensions : mbstring, intl, sodium
27
- ini-values : error_reporting=-1, display_errors=On
28
- coverage : none
23
+ ini-values : post_max_size=256M, max_execution_time=180
24
+ tools : psalm
29
25
30
- - name : Install Composer dependencies
31
- uses : " ramsey/ composer- install@v3 "
26
+ - name : Install dependencies
27
+ run : composer install
32
28
33
29
- name : PHPUnit tests
34
30
run : vendor/bin/phpunit
31
+
32
+ modern :
33
+ name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
34
+ runs-on : ${{ matrix.operating-system }}
35
+ strategy :
36
+ matrix :
37
+ operating-system : ['ubuntu-latest']
38
+ php-versions : ['8.0', '8.1', '8.2', '8.3', '8.4']
39
+ steps :
40
+ - name : Checkout
41
+ uses : actions/checkout@v4
42
+
43
+ - name : Setup PHP
44
+ uses : shivammathur/setup-php@v2
45
+ with :
46
+ php-version : ${{ matrix.php-versions }}
47
+ extensions : mbstring, intl, sodium
48
+ ini-values : post_max_size=256M, max_execution_time=180
49
+ tools : psalm
50
+
51
+ - name : Install dependencies
52
+ run : composer install
53
+
54
+ - name : PHPUnit tests
55
+ run : vendor/bin/phpunit
0 commit comments