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:
12
.github/workflows/playwright.yml
vendored
12
.github/workflows/playwright.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user