diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc04843..3e418b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,8 +50,7 @@ jobs: run: | .scenarios.lock/install "${{ matrix.symfony }}" "${DEPENDENCIES}" - name: Add browser drivers - run: | - vendor/bin/bdi detect drivers + uses: nanasess/setup-chromedriver@v2 - name: Run unit tests run: | vendor/bin/phpunit -v diff --git a/.scenarios.lock/symfony3/composer.json b/.scenarios.lock/symfony3/composer.json index a2b8eaa..c759ea3 100644 --- a/.scenarios.lock/symfony3/composer.json +++ b/.scenarios.lock/symfony3/composer.json @@ -30,7 +30,6 @@ "friends-of-behat/mink-extension": "^2.3.0" }, "require-dev": { - "dbrekelmans/bdi": "^1.0", "g1a/composer-test-scenarios": "^3.0", "matthiasnoback/symfony-config-test": "^4.1|^5.1", "phpunit/phpunit": "~7.5|~9.3", diff --git a/.scenarios.lock/symfony4/composer.json b/.scenarios.lock/symfony4/composer.json index 2dd0383..0d6f088 100644 --- a/.scenarios.lock/symfony4/composer.json +++ b/.scenarios.lock/symfony4/composer.json @@ -30,7 +30,6 @@ "friends-of-behat/mink-extension": "^2.3.0" }, "require-dev": { - "dbrekelmans/bdi": "^1.0", "g1a/composer-test-scenarios": "^3.0", "matthiasnoback/symfony-config-test": "^4.1|^5.1", "phpunit/phpunit": "~7.5|~9.3", diff --git a/.scenarios.lock/symfony5/composer.json b/.scenarios.lock/symfony5/composer.json index c7292c7..f4c8111 100644 --- a/.scenarios.lock/symfony5/composer.json +++ b/.scenarios.lock/symfony5/composer.json @@ -30,7 +30,6 @@ "friends-of-behat/mink-extension": "^2.3.0" }, "require-dev": { - "dbrekelmans/bdi": "^1.0", "g1a/composer-test-scenarios": "^3.0", "matthiasnoback/symfony-config-test": "^4.1|^5.1", "phpunit/phpunit": "~7.5|~9.3", diff --git a/.scenarios.lock/symfony6/composer.json b/.scenarios.lock/symfony6/composer.json index cc6fa82..1279167 100644 --- a/.scenarios.lock/symfony6/composer.json +++ b/.scenarios.lock/symfony6/composer.json @@ -30,7 +30,6 @@ "friends-of-behat/mink-extension": "^2.3.0" }, "require-dev": { - "dbrekelmans/bdi": "^1.0", "g1a/composer-test-scenarios": "^3.0", "matthiasnoback/symfony-config-test": "^4.1|^5.1", "phpunit/phpunit": "~7.5|~9.3", diff --git a/.scenarios.lock/symfony7/composer.json b/.scenarios.lock/symfony7/composer.json index f694b4d..bcff5ba 100644 --- a/.scenarios.lock/symfony7/composer.json +++ b/.scenarios.lock/symfony7/composer.json @@ -30,7 +30,6 @@ "friends-of-behat/mink-extension": "^2.3.0" }, "require-dev": { - "dbrekelmans/bdi": "^1.0", "g1a/composer-test-scenarios": "^3.0", "matthiasnoback/symfony-config-test": "^4.1|^5.1", "phpunit/phpunit": "~7.5|~9.3", diff --git a/bin/updatePantherChromeDriver.sh b/bin/updatePantherChromeDriver.sh deleted file mode 100755 index 6897036..0000000 --- a/bin/updatePantherChromeDriver.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash -# ensure that symfony/panther's chromeDriver matches installed chromium version -# this needs chromium and symfony/panther (in vendor folder) to be installed - -mkdir -p vendor/symfony/panther/chromedriver-bin -cd vendor/symfony/panther/chromedriver-bin - -chromiumVersion=$(chromium --product-version 2>&1;); -chromiumBrowserVersion=$(chromium-browser --product-version 2>&1;); -googleChromeVersion=$(google-chrome --product-version 2>&1;); -if [[ ${chromiumVersion} == *"."*"."* ]]; then - chromiumVersion="$( cut -d '.' -f 1 <<< "$chromiumVersion" )"; - echo "Found chromium version ${chromiumVersion}"; - chromeDriverVersion="_${chromiumVersion}" -elif [[ ${chromiumBrowserVersion} == *"."*"."* ]]; then - chromiumBrowserVersion="$( cut -d '.' -f 1 <<< "$chromiumBrowserVersion" )"; - echo "Found chromium-browser version ${chromiumBrowserVersion}"; - chromeDriverVersion="_${chromiumBrowserVersion}" -elif [[ ${googleChromeVersion} == *"."*"."* ]]; then - googleChromeVersion="$( cut -d '.' -f 1 <<< "$googleChromeVersion" )"; - echo "Found google-chrome version ${googleChromeVersion}"; - chromeDriverVersion="_${googleChromeVersion}" -else - "No google-chrome, chromium-browser or chromium found. Using latest release..." - chromeDriverVersion="" -fi - -chromeDriver=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE${chromeDriverVersion}); -echo "Downloading ChromeDriver version ${chromeDriver} from https://chromedriver.storage.googleapis.com/LATEST_RELEASE${chromeDriverVersion} ..." - -declare -a binaries=("chromedriver_linux64" "chromedriver_mac64" "chromedriver_win32") -for name in "${binaries[@]}" -do - curl -s https://chromedriver.storage.googleapis.com/${chromeDriver}/${name}.zip -O - unzip -q -o ${name}.zip - rm ${name}.zip - if [[ -f "chromedriver" ]]; then - mv chromedriver ${name} - fi -done - -curl -s https://chromedriver.storage.googleapis.com/${chromeDriver}/notes.txt -O -echo "Done." diff --git a/composer.json b/composer.json index 0d05a1e..6b518a6 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,6 @@ "friends-of-behat/mink-extension": "^2.3.0" }, "require-dev": { - "dbrekelmans/bdi": "^1.0", "g1a/composer-test-scenarios": "^3.0", "matthiasnoback/symfony-config-test": "^4.1|^5.1", "phpunit/phpunit": "~7.5|~9.3",