@@ -9,28 +9,53 @@ concurrency:
9
9
group : ${{ github.workflow }}-${{ github.ref }}
10
10
11
11
jobs :
12
+ tests :
13
+ runs-on : ubuntu-latest
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ php : [ 8.3, 8.4 ]
18
+ dependency-versions : [ lowest, highest ]
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Setup PHP
24
+ uses : shivammathur/setup-php@v2
25
+ with :
26
+ php-version : ' ${{ matrix.php }}'
27
+ coverage : none
28
+
29
+ - name : Install Composer packages
30
+ uses : ramsey/composer-install@v3
31
+ with :
32
+ dependency-versions : ' ${{ matrix.dependency-versions }}'
33
+
34
+ - name : Run tests
35
+ run : vendor/bin/phpunit --colors=always
36
+
12
37
phpstan :
13
38
strategy :
14
39
fail-fast : false
15
40
matrix :
16
- php :
17
- - ' 7.2'
18
- - ' 8.3'
19
- - ' 8.4'
41
+ php : [ 7.2, 8.3, 8.4 ]
42
+ dependency-versions : [ lowest, highest ]
20
43
21
44
runs-on : ubuntu-latest
22
45
23
46
steps :
24
- - name : Checkout code
25
- uses : actions/checkout@v4
47
+ - name : Checkout code
48
+ uses : actions/checkout@v4
26
49
27
- - name : Set up PHP
28
- uses : shivammathur/setup-php@v2
29
- with :
30
- php-version : ${{ matrix.php }}
50
+ - name : Set up PHP
51
+ uses : shivammathur/setup-php@v2
52
+ with :
53
+ php-version : ${{ matrix.php }}
31
54
32
- - name : Install Composer packages
33
- uses : ramsey/composer-install@v3
55
+ - name : Install Composer packages
56
+ uses : ramsey/composer-install@v3
57
+ with :
58
+ dependency-versions : ' ${{ matrix.dependency-versions }}'
34
59
35
- - name : Run PHPStan
36
- run : vendor/bin/phpstan --ansi
60
+ - name : Run PHPStan
61
+ run : vendor/bin/phpstan --ansi
0 commit comments