Skip to content

Commit 18291ff

Browse files
committed
ISSUE-338: use docker
1 parent 7d1b622 commit 18291ff

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/main.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
experimental: true
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222

2323
- name: Set up PHP ${{ matrix.php-version }}
2424
uses: shivammathur/setup-php@v2
@@ -80,8 +80,12 @@ jobs:
8080
mkdir -p output/screenshots
8181
mkdir -p build/mails
8282
chmod -R 777 output/screenshots build/mails
83-
./bin/start-selenium > output/selenium.log 2>&1 &
83+
docker run -d -p 4444:4444 selenium/standalone-chrome:latest
8484
sleep 5
85+
until curl --silent --fail http://localhost:4444/wd/hub/status | grep '"ready":true'; do
86+
echo 'Waiting for Selenium to start...'
87+
sleep 5
88+
done
8589
sudo php -S 0.0.0.0:80 -t public_html > /dev/null 2>&1 &
8690
continue-on-error: ${{ matrix.experimental }}
8791

tests/features/bootstrap/SubscriberContext.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require __DIR__.'/bootstrap.php';
44

55
use Behat\Behat\Context\Context;
6-
use Behat\Gherkin\Node\TableNode;
76
use Behat\Gherkin\Node\PyStringNode;
87
use Behat\Behat\Hook\Scope\BeforeScenarioScope;
98

@@ -25,10 +24,9 @@ public function beforeScenario(BeforeScenarioScope $scope)
2524

2625
/**
2726
* @param string $list
28-
* @param array $table
29-
*
30-
* @Given /I have "(.*)" list with the following subscribers:/
27+
* @param PyStringNode $stringNode
3128
* @throws Exception
29+
* @Given /I have "(.*)" list with the following subscribers:/
3230
*/
3331
public function iHaveSubscribersForList($list, PyStringNode $stringNode)
3432
{

0 commit comments

Comments
 (0)