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
This commit is contained in:
Damir Mukimov 2025-12-26 15:50:18 +01:00
parent 13e814acda
commit e65b637440
No known key found for this signature in database
GPG Key ID: 42996CC7C73BC750

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"