From 51c3a2672faddf09adc72665f333b36032d618f4 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Mon, 11 Mar 2024 18:43:08 +0100 Subject: [PATCH] fix playwright action database connection --- .env.ci | 2 +- .github/workflows/playwright.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.env.ci b/.env.ci index 986ec588..5b3d9af2 100644 --- a/.env.ci +++ b/.env.ci @@ -8,7 +8,7 @@ LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug -DB_CONNECTION=sqlite +DB_CONNECTION=pgsql DB_HOST=127.0.0.1 DB_PORT=5432 DB_DATABASE=laravel diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 7c12dcf9..b988cf8f 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -11,6 +11,20 @@ jobs: services: mailpit: image: 'axllent/mailpit:latest' + pgsql: + image: postgres:15 + env: + PGPASSWORD: 'root' + POSTGRES_DB: 'laravel' + POSTGRES_USER: 'root' + POSTGRES_PASSWORD: 'root' + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 steps: - name: "Checkout code"