Compare commits

...

2 Commits

Author SHA1 Message Date
Damir Mukimov
e4b345fddc
Enable Corepack and set Yarn version in Dockerfile for frontend build
Some checks failed
CI/CD Pipeline / frontend-lint (push) Successful in 1m38s
CI/CD Pipeline / frontend-build (push) Failing after 35s
CI/CD Pipeline / backend-lint (push) Failing after 7m3s
CI/CD Pipeline / backend-build (push) Has been skipped
CI/CD Pipeline / e2e-test (push) Has been skipped
2025-12-26 15:52:19 +01:00
Damir Mukimov
e65b637440
Enhance CI workflow to support conditional Docker testing
- Allow forcing Docker testing with the DOCKER_FORCE environment variable for local development
- Update Docker availability check to accommodate forced testing scenarios
2025-12-26 15:50:18 +01:00
2 changed files with 5 additions and 1 deletions

View File

@ -255,7 +255,8 @@ jobs:
working-directory: bugulma/backend
run: |
# Check if Docker is available for testcontainers
if command -v docker &> /dev/null && docker info &> /dev/null; then
# Allow forcing Docker testing with DOCKER_FORCE=true (useful for local development)
if [ "$DOCKER_FORCE" = "true" ] || (command -v docker &> /dev/null && docker info &> /dev/null 2>&1); then
echo "✅ Docker available - running all tests with testcontainers"
echo "🧪 Testcontainers will provide isolated PostgreSQL instances"

View File

@ -4,6 +4,9 @@ FROM node:18-alpine AS builder
# Set working directory
WORKDIR /app
# Enable corepack and set yarn version
RUN corepack enable && corepack prepare yarn@4.12.0 --activate
# Copy package files
COPY package*.json yarn.lock ./