File tree 1 file changed +12
-8
lines changed
1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches-ignore : [master]
6
6
7
+ env :
8
+ PHP_LOWEST : ' 8.2'
9
+ PHP_LATEST : ' 8.4'
10
+
7
11
jobs :
8
12
tests :
9
- name : Tests / PHP ${{ matrix.php }}, ${{ matrix.stability }}
13
+ name : Tests / ${{ matrix.version }} PHP , ${{ matrix.stability }}
10
14
11
15
runs-on : ubuntu-latest
12
16
strategy :
13
17
matrix :
14
- php : ['8.2 ', '8.3', '8.4 ']
18
+ version : ['lowest ', 'latest ']
15
19
stability : [prefer-lowest, prefer-stable]
16
20
17
21
steps :
21
25
- name : Setup PHP
22
26
uses : shivammathur/setup-php@v2
23
27
with :
24
- php-version : ${{ matrix.php }}
28
+ php-version : ${{ matrix.version == 'lowest' && env.PHP_LOWEST || env.PHP_LATEST }}
25
29
coverage : none
26
30
27
31
- name : Get Composer cache directory path
@@ -42,15 +46,15 @@ jobs:
42
46
run : vendor/bin/phpunit
43
47
44
48
types :
45
- name : Types / PHP ${{ matrix.php }}
49
+ name : Types / ${{ matrix.version }} PHP
46
50
47
51
runs-on : ubuntu-latest
48
52
strategy :
49
53
matrix :
50
54
include :
51
- - php : ' 8.2 '
55
+ - version : lowest
52
56
stability : prefer-lowest
53
- - php : ' 8.4 '
57
+ - version : latest
54
58
stability : prefer-stable
55
59
56
60
steps :
60
64
- name : Setup PHP
61
65
uses : shivammathur/setup-php@v2
62
66
with :
63
- php-version : ${{ matrix.php }}
67
+ php-version : ${{ matrix.version == 'lowest' && env.PHP_LOWEST || env.PHP_LATEST }}
64
68
coverage : none
65
69
66
70
- name : Get Composer cache directory path
99
103
- name : Setup PHP
100
104
uses : shivammathur/setup-php@v2
101
105
with :
102
- php-version : ' 8.2 '
106
+ php-version : ${{ env.PHP_LOWEST }}
103
107
coverage : none
104
108
105
109
- name : Get Composer cache directory path
You can’t perform that action at this time.
0 commit comments