@@ -11,10 +11,10 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
timeout-minutes : 5
13
13
steps :
14
- - uses : actions/checkout@v2
14
+ - uses : actions/checkout@v4
15
15
-
uses :
shivammathur/[email protected]
16
16
with :
17
- php-version : 8.0
17
+ php-version : 8.4
18
18
extensions : xdebug
19
19
- name : Validate composer.json and install tools
20
20
run : |
23
23
24
24
- name : Cache Composer packages
25
25
id : composer-cache
26
- uses : actions/cache@v2
26
+ uses : actions/cache@v3
27
27
with :
28
28
path : vendor
29
29
key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
@@ -46,17 +46,17 @@ jobs:
46
46
runs-on : ubuntu-latest
47
47
timeout-minutes : 5
48
48
steps :
49
- - uses : actions/checkout@v2
49
+ - uses : actions/checkout@v4
50
50
-
uses :
shivammathur/[email protected]
51
51
with :
52
- php-version : 8.0
52
+ php-version : 8.4
53
53
extensions : xdebug
54
54
- name : Validate composer.json and composer.lock
55
55
run : composer validate && make tools
56
56
57
57
- name : Cache Composer packages
58
58
id : composer-cache
59
- uses : actions/cache@v2
59
+ uses : actions/cache@v3
60
60
with :
61
61
path : vendor
62
62
key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
90
90
- php-secrets-http
91
91
- php-secret-client-service
92
92
- php-secret-client-http
93
- - sail-app
94
93
include :
95
94
- image : caddy
96
95
dockerfile : images/caddy.Dockerfile
@@ -146,19 +145,11 @@ jobs:
146
145
context : examples/secrets
147
146
args : |
148
147
SERVICE=client
149
- - image : sail-app
150
- context : examples/laravel/vendor/laravel/sail/runtimes/8.0
151
- dockerfile : examples/laravel/vendor/laravel/sail/runtimes/8.0/Dockerfile
152
- args : |
153
- WWWGROUP=1000
154
- pre-built : |
155
- cd examples/laravel
156
- composer install
157
148
steps :
158
- - uses : actions/checkout@v2
149
+ - uses : actions/checkout@v4
159
150
-
uses :
shivammathur/[email protected]
160
151
with :
161
- php-version : 8.0
152
+ php-version : 8.4
162
153
- name : Update examples
163
154
env :
164
155
GIT_BRANCH : ${{ github.head_ref || 'main' }}
@@ -172,7 +163,7 @@ jobs:
172
163
with :
173
164
install : true
174
165
- name : Cache Docker layers
175
- uses : actions/cache@v2
166
+ uses : actions/cache@v3
176
167
with :
177
168
path : /tmp/.${{ matrix.image }}-cache
178
169
key : ${{ runner.os }}-${{ matrix.image }}-${{ github.sha }}
@@ -193,7 +184,7 @@ jobs:
193
184
cache-to : type=local,mode=max,dest=/tmp/.${{ matrix.image }}-cache
194
185
build-args : ${{ matrix.args || '' }}
195
186
- name : upload artifact
196
- uses : actions/upload-artifact@v2
187
+ uses : actions/upload-artifact@v4
197
188
with :
198
189
name : ${{ matrix.image }}
199
190
path : /tmp/${{ matrix.image }}.tar
@@ -204,15 +195,15 @@ jobs:
204
195
timeout-minutes : 5
205
196
strategy :
206
197
matrix :
207
- dapr-version : [ 1.5.2, 1.6.1, 1.7 .0 ]
198
+ dapr-version : [ 1.15 .0 ]
208
199
steps :
209
200
- name : Download Caddy Image
210
- uses : actions/download-artifact@v2
201
+ uses : actions/download-artifact@v4
211
202
with :
212
203
name : caddy
213
204
path : /tmp
214
205
- name : Download Tests Image
215
- uses : actions/download-artifact@v2
206
+ uses : actions/download-artifact@v4
216
207
with :
217
208
name : tests
218
209
path : /tmp
@@ -223,21 +214,21 @@ jobs:
223
214
- uses : actions/checkout@v2
224
215
-
uses :
shivammathur/[email protected]
225
216
with :
226
- php-version : 8.0
217
+ php-version : 8.4
227
218
- name : Validate composer.json and composer.lock
228
219
run : composer validate
229
220
- name : Integration Environment Startup
230
221
env :
231
222
DAPR_VERSION : ${{ matrix.dapr-version }}
232
- run : docker- compose up -d
223
+ run : docker compose up -d
233
224
- name : Wait for environment stabilization
234
225
run : sleep 10
235
226
- name : Execute Tests
236
227
run : |
237
228
STATUSCODE=$(curl --silent --output /tmp/test-results.json --write-out "%{http_code}" -H 'dapr-api-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' http://localhost:9502/do_tests)
238
229
cat /tmp/test-results.json | jq -C .
239
230
if test $STATUSCODE -ne 200; then
240
- docker- compose logs dev
231
+ docker compose logs dev
241
232
exit 1
242
233
fi
243
234
examples :
@@ -248,25 +239,22 @@ jobs:
248
239
strategy :
249
240
matrix :
250
241
dapr-version :
251
- - 1.5.2
252
- - 1.6.1
253
- - 1.7.0
242
+ - 1.15.0
254
243
example :
255
244
- actor
256
245
- secrets
257
- - laravel
258
246
steps :
259
- - uses : actions/checkout@v2
247
+ - uses : actions/checkout@v4
260
248
-
uses :
shivammathur/[email protected]
261
249
with :
262
- php-version : 8.0
250
+ php-version : 8.4
263
251
- name : Update examples
264
252
env :
265
253
GIT_BRANCH : ${{ github.head_ref || 'main' }}
266
254
run :
267
255
php update-examples.php
268
256
- name : Download images
269
- uses : actions/download-artifact@v2
257
+ uses : actions/download-artifact@v4
270
258
with :
271
259
path : /tmp/images
272
260
- name : Import images
@@ -284,7 +272,7 @@ jobs:
284
272
if [ -f start.php ]; then
285
273
php start.php
286
274
else
287
- docker- compose -f docker-compose.yml -f ../docker-compose.common.yml up -d
275
+ docker compose -f docker-compose.yml -f ../docker-compose.common.yml up -d
288
276
fi
289
277
- name : Wait for stability
290
278
run : sleep 10
0 commit comments