mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
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:
parent
13e814acda
commit
e65b637440
@ -255,7 +255,8 @@ jobs:
|
|||||||
working-directory: bugulma/backend
|
working-directory: bugulma/backend
|
||||||
run: |
|
run: |
|
||||||
# Check if Docker is available for testcontainers
|
# 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 "✅ Docker available - running all tests with testcontainers"
|
||||||
echo "🧪 Testcontainers will provide isolated PostgreSQL instances"
|
echo "🧪 Testcontainers will provide isolated PostgreSQL instances"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user