Add the configuration for Drone CI/CD to run E2E tests.
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -9,6 +9,7 @@ environment:
|
|||||||
DATABASE_HOST: postgres
|
DATABASE_HOST: postgres
|
||||||
DATABASE_PORT: 5432
|
DATABASE_PORT: 5432
|
||||||
SECRET_KEY_BASE: TestSecretKeycRZ1H45gfdAsdf8DIb45df4664mRCruzwVEF68wosddfg324ost
|
SECRET_KEY_BASE: TestSecretKeycRZ1H45gfdAsdf8DIb45df4664mRCruzwVEF68wosddfg324ost
|
||||||
|
SELENIUM_REMOTE_URL: http://standalone-firefox:4444/wd/hub/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
@@ -49,4 +50,6 @@ services:
|
|||||||
POSTGRES_DB: link_shortener_dev
|
POSTGRES_DB: link_shortener_dev
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
- name: standalone-firefox
|
||||||
|
image: selenium/standalone-firefox:129.0
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -43,5 +43,8 @@ config :wallaby,
|
|||||||
otp_app: :link_shortener,
|
otp_app: :link_shortener,
|
||||||
screenshot_on_failure: true,
|
screenshot_on_failure: true,
|
||||||
screenshot_dir: "screenshots",
|
screenshot_dir: "screenshots",
|
||||||
driver: Wallaby.Selenium
|
driver: Wallaby.Selenium,
|
||||||
|
selenium: [
|
||||||
|
remote_url: System.get_env("SELENIUM_REMOTE_URL", "http://localhost:4444/wd/hub/")
|
||||||
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user