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.
This commit is contained in:
GitHub Actions
2026-01-12 19:55:56 +00:00
parent 9381255940
commit 4e23a63d8f

View File

@@ -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