Skip to content

Commit 09f3359

Browse files
authored
Update laravel_dusk_connect-cms-test.yml
1 parent c27130b commit 09f3359

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/laravel_dusk_connect-cms-test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,27 @@ jobs:
143143
# https://github.com/browser-actions/setup-chrome (community)
144144
- name: Downgrade Chrome browser to v114
145145
uses: browser-actions/setup-chrome@latest
146+
id: setup-chrome
146147
with:
147148
# chrome-version: 1134343 # Last commit number for Chrome v114
148149
chrome-version: 114.0.5735.90
150+
install-chromedriver: true
149151

150152
- name: Chrome bin-path Override
151-
run: sudo ln -nfs `which chrome` /usr/bin/google-chrome
153+
run: sudo ln -nfs `which chrome` /usr/bin/chrome
152154

153155
- name: Downgrade Chrome driver to v114
154156
run: php artisan dusk:chrome-driver 114
155157
# run: php artisan dusk:chrome-driver `chrome --version | cut -d " " -f3`
156158
# run: php artisan dusk:chrome-driver `/usr/bin/google-chrome --version | cut -d " " -f3 | cut -d "." -f1`
157159

160+
- name: Chrome Driver Copy
161+
run: sudo \cp -f ${{ steps.setup-chrome.outputs.chromedriver-path }} ./vendor/laravel/dusk/bin/chromedriver-linux
162+
163+
- name: Chrome Driver Permission Denied 対応
164+
run: |
165+
sudo chmod +x ./vendor/laravel/dusk/bin/chromedriver-linux
166+
158167
- name: Start Chrome Driver
159168
run: ./vendor/laravel/dusk/bin/chromedriver-linux &
160169

0 commit comments

Comments
 (0)