我试图在CircleCI上运行laravel黄昏测试,但无法启动chrome webdriver。
这是我的工作:
# deploy-job
deploy-job:
<<: *defaults
steps:
- attach_workspace:
at: ~/laravel
- run:
name: Run tests
command: ./vendor/bin/phpunit -d memory_limit=512M
- run:
name: Start Chrome Driver
command: ./vendor/laravel/dusk/bin/chromedriver-linux
background: true
- run:
name: Run Laravel Server
command: php artisan serve
background: true
- run:
name: Run Laravel Dusk Tests
command: php artisan dusk
在步骤Start Chrome Driver
上,出现以下错误:
#!/bin/bash -eo pipefail
./vendor/laravel/dusk/bin/chromedriver-linux
Starting ChromeDriver 2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881) on port 9515
Only local connections are allowed.
Step was canceled
关于如何解决此问题的任何建议?