@@ -21,10 +21,10 @@ jobs:
2121 fail-fast : false
2222 matrix :
2323 php : [ "8.2", "8.3" ]
24- symfony : [ "^6.4", "^7.1" ]
25- sylius : [ "^ 2.0.4 " ]
26- node : [ "20.x", "22.x" ]
27- mysql : [ "5.7", " 8.0" ]
24+ symfony : ["^6.4", "^7.1" ]
25+ sylius : [ "~ 2.0.0 " ]
26+ node : [ "20.x" ]
27+ mysql : [ "8.0" ]
2828
2929 env :
3030 APP_ENV : test
6868 name : Install certificates
6969 run : symfony server:ca:install
7070
71+ -
72+ name : Run Chrome Headless
73+ run : google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1 > /dev/null 2>&1 &
74+
75+ -
76+ name : Run webserver
77+ run : (cd tests/Application && symfony server:start --port=8080 --dir=public --daemon)
78+
7179 -
7280 name : Get Composer cache directory
7381 id : composer-cache
@@ -142,10 +150,31 @@ jobs:
142150 name : Validate database schema
143151 run : (cd tests/Application && bin/console doctrine:schema:validate)
144152
153+ -
154+ name : Run PHPSpec
155+ run : vendor/bin/phpspec run --ansi -f progress --no-interaction
156+
145157 -
146158 name : Run PHPUnit
147159 run : vendor/bin/phpunit --colors=always
148160
161+ -
162+ name : Create behat logs directory
163+ run : (mkdir -p etc/build && chmod a+rw etc/build )
164+
165+ -
166+ name : Run Behat
167+ run : vendor/bin/behat --colors --strict -vvv --no-interaction || vendor/bin/behat --colors --strict -vvv --no-interaction --rerun
168+
169+ -
170+ name : Upload Behat logs
171+ uses : actions/upload-artifact@v3
172+ if : failure()
173+ with :
174+ name : Behat logs
175+ path : etc/build/
176+ if-no-files-found : ignore
177+
149178 -
150179 name : Failed build Slack notification
151180 uses : rtCamp/action-slack-notify@v2
0 commit comments