40
40
fail-fast : true
41
41
matrix :
42
42
php : [8.1, 8.2]
43
- phpunit : ['9.5.8', '10.0']
44
43
stability : [prefer-lowest, prefer-stable]
45
44
46
- name : PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} - ${{ matrix.stability }}
45
+ name : PHP ${{ matrix.php }} - ${{ matrix.stability }}
47
46
48
47
steps :
49
48
- name : Checkout code
@@ -76,32 +75,14 @@ jobs:
76
75
command : composer require guzzlehttp/guzzle:^7.5 guzzlehttp/psr7:^2.4 predis/predis:^2.0.2 --no-interaction --no-update
77
76
if : matrix.php >= 8.2
78
77
79
- - name : Set PHPUnit
80
- uses : nick-fields/retry@v2
81
- with :
82
- timeout_minutes : 5
83
- max_attempts : 5
84
- command : composer require phpunit/phpunit:~${{ matrix.phpunit }} --dev --no-interaction --no-update
85
-
86
78
- name : Install dependencies
87
79
uses : nick-fields/retry@v2
88
80
with :
89
81
timeout_minutes : 5
90
82
max_attempts : 5
91
83
command : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
92
84
93
- - name : Execute tests against PHPUnit ^9
94
- run : vendor/bin/phpunit --verbose --configuration phpunit9.xml.dist
95
- env :
96
- DB_PORT : ${{ job.services.mysql.ports[3306] }}
97
- DB_USERNAME : root
98
- DYNAMODB_CACHE_TABLE : laravel_dynamodb_test
99
- DYNAMODB_ENDPOINT : " http://localhost:8888"
100
- AWS_ACCESS_KEY_ID : random_key
101
- AWS_SECRET_ACCESS_KEY : random_secret
102
- if : matrix.phpunit != '10.0'
103
-
104
- - name : Execute tests against PHPUnit ^10
85
+ - name : Execute tests
105
86
run : vendor/bin/phpunit
106
87
env :
107
88
DB_PORT : ${{ job.services.mysql.ports[3306] }}
110
91
DYNAMODB_ENDPOINT : " http://localhost:8888"
111
92
AWS_ACCESS_KEY_ID : random_key
112
93
AWS_SECRET_ACCESS_KEY : random_secret
113
- if : matrix.phpunit == '10.0'
114
94
115
95
- name : Store artifacts
116
96
uses : actions/upload-artifact@v3
@@ -127,10 +107,9 @@ jobs:
127
107
fail-fast : true
128
108
matrix :
129
109
php : [8.1, 8.2]
130
- phpunit : ['9.5.8', '10.0']
131
110
stability : [prefer-lowest, prefer-stable]
132
111
133
- name : PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} - ${{ matrix.stability }} - Windows
112
+ name : PHP ${{ matrix.php }} - ${{ matrix.stability }} - Windows
134
113
135
114
steps :
136
115
- name : Set git to use LF
@@ -164,33 +143,18 @@ jobs:
164
143
command : composer require guzzlehttp/guzzle:~7.5 guzzlehttp/psr7:~2.4 predis/predis:~2.0.2 --no-interaction --no-update
165
144
if : matrix.php >= 8.2
166
145
167
- - name : Set PHPUnit
168
- uses : nick-fields/retry@v2
169
- with :
170
- timeout_minutes : 5
171
- max_attempts : 5
172
- command : composer require phpunit/phpunit:~${{ matrix.phpunit }} --dev --no-interaction --no-update
173
-
174
146
- name : Install dependencies
175
147
uses : nick-fields/retry@v2
176
148
with :
177
149
timeout_minutes : 5
178
150
max_attempts : 5
179
151
command : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
180
152
181
- - name : Execute tests against PHPUnit ^9
182
- run : vendor/bin/phpunit --verbose --configuration phpunit9.xml.dist
183
- env :
184
- AWS_ACCESS_KEY_ID : random_key
185
- AWS_SECRET_ACCESS_KEY : random_secret
186
- if : matrix.phpunit != '10.0'
187
-
188
- - name : Execute tests against PHPUnit ^10
153
+ - name : Execute tests
189
154
run : vendor/bin/phpunit
190
155
env :
191
156
AWS_ACCESS_KEY_ID : random_key
192
157
AWS_SECRET_ACCESS_KEY : random_secret
193
- if : matrix.phpunit == '10.0'
194
158
195
159
- name : Store artifacts
196
160
uses : actions/upload-artifact@v3
0 commit comments