@@ -134,44 +134,36 @@ jobs:
134134
135135 # https://readouble.com/laravel/9.x/ja/dusk.html#managing-chromedriver-installations
136136 # https://readouble.com/laravel/9.x/ja/dusk.html#running-tests-on-github-actions
137+ # Chrome Version と Chrome Driverを同じにする
137138 - name : Upgrade Chrome Driver
138139 # run: php artisan dusk:chrome-driver --detect
139140 # run: php artisan dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3 | cut -d "." -f1`
140141 run : php artisan dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3`
141142
142- # エラー対応: Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: probably user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir
143- # - name: Uninstall Chrome
144- # run: sudo apt-get remove google-chrome-stable
145-
146- # https://github.com/laravel/dusk/issues/1109
147- # https://github.com/browser-actions/setup-chrome (community)
148- # - name: Downgrade Chrome browser to v126
149- # uses: browser-actions/setup-chrome@v1
150- # id: setup-chrome
151- # with:
152- # chrome-version: 132
153- # install-chromedriver: true
154-
155- # - name: Chrome bin-path Override
156- # run: sudo ln -nfs `which chrome` /usr/bin/chrome
157-
158- # RuntimeException: Invalid path to Chromedriver対応
159- # - name: Downgrade Chrome driver to v126
160- # run: php artisan dusk:chrome-driver 126
161-
162- - name : Chrome Driver bin-path Override
163- # run: sudo ln -nfs ${{ steps.setup-chrome.outputs.chromedriver-path }} ./vendor/laravel/dusk/bin/chromedriver-linux
164- # run: sudo ln -nfs ./vendor/laravel/dusk/bin/chromedriver-linux64/chromedriver ./vendor/laravel/dusk/bin/chromedriver-linux
143+ - name : Chrome Driver Copy
165144 run : sudo \cp -f ./vendor/laravel/dusk/bin/chromedriver-linux64/chromedriver ./vendor/laravel/dusk/bin/chromedriver-linux
166145
167146 - name : Chrome Driver Permission Denied 対応
168147 run : |
169148 sudo chmod +x ./vendor/laravel/dusk/bin/chromedriver-linux64/chromedriver
170149 sudo chmod +x ./vendor/laravel/dusk/bin/chromedriver-linux
171150
151+ # https://stackoverflow.com/questions/76980975/chrome-driver-failing-in-laravel-dusk-failed-to-open-stream-http-request-fai
152+ # https://voicetechno-jp.secure-web.jp/ChromeDriverV115orNewer.html
153+ # https://github.com/browser-actions/setup-chrome (community)
154+ # - name: Downgrade Chrome browser to v114
155+ # uses: browser-actions/setup-chrome@latest
156+ # with:
157+ # chrome-version: 1134343 # Last commit number for Chrome v114
158+
159+ # - name: Chrome bin-path Override
160+ # run: sudo ln -nfs `which chrome` /usr/bin/google-chrome
161+
162+ # - name: Downgrade Chrome driver to v114
163+ # run: php artisan dusk:chrome-driver 114
164+
172165 - name : Start Chrome Driver
173166 run : ./vendor/laravel/dusk/bin/chromedriver-linux --port=9515 &
174- # run: ./vendor/laravel/dusk/bin/chromedriver-linux64/chromedriver --port=9515 &
175167 - name : Run Laravel Server
176168 run : php artisan serve &
177169
0 commit comments