2323jobs :
2424 static-checks :
2525 runs-on : ubuntu-18.04
26-
26+
2727 name : " Static checks (PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }})"
2828
2929 timeout-minutes : 10
@@ -35,10 +35,10 @@ jobs:
3535 symfony : [^4.4]
3636
3737 steps :
38- -
38+ -
3939 uses : actions/checkout@v2
4040
41- -
41+ -
4242 name : Setup PHP
4343 uses : shivammathur/setup-php@v2
4444 with :
@@ -48,17 +48,17 @@ jobs:
4848 tools : symfony
4949 coverage : none
5050
51- -
51+ -
5252 name : Restrict Symfony version
5353 if : matrix.symfony != ''
5454 run : composer config extra.symfony.require "${{ matrix.symfony }}"
5555
56- -
56+ -
5757 name : Get Composer cache directory
5858 id : composer-cache
5959 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
6060
61- -
61+ -
6262 name : Cache Composer
6363 uses : actions/cache@v2
6464 with :
@@ -67,12 +67,12 @@ jobs:
6767 restore-keys : |
6868 ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-
6969
70- -
70+ -
7171 name : Install PHP dependencies
7272 run : composer update --no-interaction --no-scripts
7373 id : end-of-setup
7474
75- -
75+ -
7676 name : Validate composer.json
7777 run : composer validate --strict
7878 if : always() && steps.end-of-setup.outcome == 'success'
@@ -119,28 +119,33 @@ jobs:
119119 matrix :
120120 php : [7.3, 7.4]
121121 symfony : [^4.4]
122- mysql : [5.7]
122+ mysql : [5.7, 8.0]
123+
124+ exclude :
125+ -
126+ php : 7.3
127+ mysql : 8.0
123128
124129 env :
125130 APP_ENV : test_cached
126131 DATABASE_URL :
" mysql://root:[email protected] /sylius?serverVersion=${{ matrix.mysql }}" 127132
128133 steps :
129- -
134+ -
130135 uses : actions/checkout@v2
131136
132- -
137+ -
133138 name : Shutdown default MySQL
134139 run : sudo service mysql stop
135140
136- -
141+ -
137142 name : Setup MySQL
138143 uses :
mirromutth/[email protected] 139144 with :
140145 mysql version : " ${{ matrix.mysql }}"
141146 mysql root password : " root"
142147
143- -
148+ -
144149 name : Setup PHP
145150 uses : shivammathur/setup-php@v2
146151 with :
@@ -150,17 +155,17 @@ jobs:
150155 tools : symfony
151156 coverage : none
152157
153- -
158+ -
154159 name : Restrict Symfony version
155160 if : matrix.symfony != ''
156161 run : composer config extra.symfony.require "${{ matrix.symfony }}"
157162
158- -
163+ -
159164 name : Get Composer cache directory
160165 id : composer-cache
161166 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
162167
163- -
168+ -
164169 name : Cache Composer
165170 uses : actions/cache@v2
166171 with :
@@ -169,7 +174,7 @@ jobs:
169174 restore-keys : |
170175 ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-
171176
172- -
177+ -
173178 name : Install PHP dependencies
174179 run : composer update --no-interaction --no-scripts
175180
@@ -179,15 +184,15 @@ jobs:
179184 echo "DATABASE_URL=$DATABASE_URL" >> .env.$APP_ENV
180185 composer dump-env $APP_ENV
181186
182- -
187+ -
183188 name : Warmup cache
184189 run : bin/console cache:warmup
185190
186- -
191+ -
187192 name : Make filesystem readonly
188193 run : chmod -R 555 app bin config docs features src templates tests translations vendor
189194
190- -
195+ -
191196 name : Prepare application database
192197 run : |
193198 APP_DEBUG=1 bin/console doctrine:database:create -vvv
@@ -208,23 +213,23 @@ jobs:
208213 name : Load fixtures
209214 run : bin/console sylius:fixtures:load default --no-interaction
210215
211- -
216+ -
212217 name : Run PHPSpec
213218 run : vendor/bin/phpspec run --ansi --no-interaction -f dot
214219
215220 -
216221 name : Run PHPUnit
217222 run : vendor/bin/phpunit --colors=always
218223
219- -
224+ -
220225 name : Run CLI Behat
221226 run : vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@cli && ~@todo" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@cli && ~@todo" --rerun
222227
223228 -
224229 name : Run non-JS Behat
225230 run : vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript && ~@todo && ~@cli" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript && ~@todo && ~@cli" --rerun
226231
227- -
232+ -
228233 name : Upload Behat logs
229234 uses : actions/upload-artifact@v2
230235 if : failure()
@@ -246,28 +251,33 @@ jobs:
246251 php : [7.3, 7.4]
247252 symfony : [^4.4]
248253 node : [10.x]
249- mysql : [5.7]
254+ mysql : [5.7, 8.0]
255+
256+ exclude :
257+ -
258+ php : 7.3
259+ mysql : 8.0
250260
251261 env :
252262 APP_ENV : test_cached
253263 DATABASE_URL :
" mysql://root:[email protected] /sylius?serverVersion=${{ matrix.mysql }}" 254264
255265 steps :
256- -
266+ -
257267 uses : actions/checkout@v2
258268
259- -
269+ -
260270 name : Shutdown default MySQL
261271 run : sudo service mysql stop
262272
263- -
273+ -
264274 name : Setup MySQL
265275 uses :
mirromutth/[email protected] 266276 with :
267277 mysql version : " ${{ matrix.mysql }}"
268278 mysql root password : " root"
269279
270- -
280+ -
271281 name : Setup PHP
272282 uses : shivammathur/setup-php@v2
273283 with :
@@ -277,25 +287,25 @@ jobs:
277287 tools : symfony
278288 coverage : none
279289
280- -
290+ -
281291 name : Restrict Symfony version
282292 if : matrix.symfony != ''
283293 run : composer config extra.symfony.require "${{ matrix.symfony }}"
284294
285- -
295+ -
286296 name : Install certificates
287297 run : symfony server:ca:install
288298
289- -
299+ -
290300 name : Run Chrome Headless
291301 run : google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' https://127.0.0.1 > /dev/null 2>&1 &
292302
293- -
303+ -
294304 name : Get Composer cache directory
295305 id : composer-cache
296306 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
297307
298- -
308+ -
299309 name : Cache Composer
300310 uses : actions/cache@v2
301311 with :
@@ -304,22 +314,22 @@ jobs:
304314 restore-keys : |
305315 ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-
306316
307- -
317+ -
308318 name : Install PHP dependencies
309319 run : composer update --no-interaction --no-scripts
310320
311- -
321+ -
312322 name : Setup Node
313323 uses : actions/setup-node@v1
314324 with :
315325 node-version : " ${{ matrix.node }}"
316326
317- -
327+ -
318328 name : Get Yarn cache directory
319329 id : yarn-cache
320330 run : echo "::set-output name=dir::$(yarn cache dir)"
321331
322- -
332+ -
323333 name : Cache Yarn
324334 uses : actions/cache@v2
325335 with :
@@ -328,15 +338,15 @@ jobs:
328338 restore-keys : |
329339 ${{ runner.os }}-node-${{ matrix.node }}-yarn-
330340
331- -
341+ -
332342 name : Install JS dependencies
333343 run : yarn install
334344
335- -
345+ -
336346 name : Validate Yarn packages
337347 run : yarn check
338348
339- -
349+ -
340350 name : Dump the environment
341351 run : |
342352 echo "DATABASE_URL=$DATABASE_URL" >> .env.$APP_ENV
@@ -346,11 +356,11 @@ jobs:
346356 name : Warmup cache
347357 run : bin/console cache:warmup
348358
349- -
359+ -
350360 name : Run webserver
351361 run : symfony server:start --port=8080 --dir=public --daemon
352362
353- -
363+ -
354364 name : Prepare application database
355365 run : |
356366 APP_DEBUG=1 bin/console doctrine:database:create -vvv
@@ -370,7 +380,7 @@ jobs:
370380 name : Run JS Behat
371381 run : vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript && ~@todo && ~@cli" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript && ~@todo && ~@cli" --rerun || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript && ~@todo && ~@cli" --rerun
372382
373- -
383+ -
374384 name : Upload Behat logs
375385 uses : actions/upload-artifact@v2
376386 if : failure()
@@ -382,23 +392,23 @@ jobs:
382392 notify-about-build-failure :
383393 runs-on : ubuntu-18.04
384394
385- if : failure() && (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release')
395+ if : failure() && (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release')
386396
387397 needs : [static-checks, test-application-without-frontend, test-application-with-frontend]
388-
398+
389399 name : " Notify about build failure"
390400
391401 timeout-minutes : 5
392-
402+
393403 steps :
394- -
404+ -
395405 name : " Process data"
396406 id : process-data
397407 shell : bash
398408 run : |
399409 echo "::set-output name=branch::$(echo ${{ github.ref }} | sed 's/refs\/heads\///g' | sed 's/refs\/tags\///g')"
400410 echo "::set-output name=sha::$(echo ${{ github.sha }} | cut -c 1-12)"
401-
411+
402412 -
403413 name : " Notify on Slack"
404414 uses : edge/simple-slack-notify@master
@@ -410,11 +420,11 @@ jobs:
410420 username : " GitHub Actions"
411421 text : |
412422 *<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ${{ github.workflow }} #${{ github.run_number }} build on ${{ github.repository }} repository has failed for ${{ steps.process-data.outputs.branch }} branch.>*
413-
423+
414424 ${{ needs.static-checks.result == 'success' && ':+1:' || ':x:' }} Static checks
415425 ${{ needs.test-application-without-frontend.result == 'success' && ':+1:' || ':x:' }} Test non-JS application
416426 ${{ needs.test-application-with-frontend.result == 'success' && ':+1:' || ':x:' }} Test JS application
417-
427+
418428 _ _ _ _ _ _ _
419429 color : " danger"
420430 fields : |
0 commit comments