Skip to content

Commit c913b7c

Browse files
committed
Remove selenium2
1 parent 7fe8f40 commit c913b7c

3 files changed

Lines changed: 35 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -68,6 +68,14 @@ jobs:
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

behat.yml.dist

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,14 @@ default:
1515
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"
1616
base_url: "https://127.0.0.1:8080/"
1717
default_session: symfony
18-
javascript_session: chrome_headless
18+
javascript_session: chrome
1919
sessions:
2020
symfony:
2121
symfony: ~
22-
chrome_headless:
22+
chrome:
2323
chrome:
2424
api_url: http://127.0.0.1:9222
2525
validate_certificate: false
26-
chrome:
27-
selenium2:
28-
browser: chrome
29-
capabilities:
30-
browserName: chrome
31-
browser: chrome
32-
version: ""
33-
marionette: null # https://github.com/Behat/MinkExtension/pull/311
34-
chrome:
35-
switches:
36-
- "start-fullscreen"
37-
- "start-maximized"
38-
- "no-sandbox"
39-
extra_capabilities:
40-
unexpectedAlertBehaviour: accept
41-
firefox:
42-
selenium2:
43-
browser: firefox
4426
show_auto: false
4527

4628
FriendsOfBehat\SymfonyExtension:

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"require-dev": {
1515
"behat/behat": "^3.14",
16-
"behat/mink-selenium2-driver": "^1.6",
1716
"bitbag/coding-standard": "^3.0",
1817
"dmore/behat-chrome-extension": "^1.4",
1918
"dmore/chrome-mink-driver": "^2.9",

0 commit comments

Comments
 (0)