From 4e23a63d8fcb1f03de20275a0946bdb80fa45aea Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 12 Jan 2026 19:55:56 +0000 Subject: [PATCH] fix(ci): build Docker image before Playwright tests - Add Docker image build step before docker compose up - Optimize Playwright browser installation (chromium only) - Add frontend dependency installation with logging - Fixes workflow hanging on missing charon:local image Previous workflow assumed image existed but CI doesn't pre-build it. Now builds image from Dockerfile before starting application stack. --- .github/workflows/playwright.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 010b78c4..c4de1ab2 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -16,10 +16,18 @@ jobs: - name: Install dependencies run: npm ci - name: Install Playwright Browsers - run: npx playwright install --with-deps + run: npx playwright install --with-deps chromium - name: Build Frontend working-directory: frontend - run: npm run build + run: | + echo "Installing frontend dependencies..." + npm ci + echo "Building frontend..." + npm run build + - name: Build Docker Image + run: | + echo "Building charon:local Docker image..." + docker build -t charon:local . - name: Start Application Stack run: docker compose -f .docker/compose/docker-compose.local.yml up -d - name: Wait for Application Health