fix test issue in linux'

This commit is contained in:
bahdotsh
2025-04-21 19:21:15 +05:30
parent 99a0bae3e9
commit e6c068cc1d
6 changed files with 712 additions and 23 deletions

View File

@@ -11,6 +11,8 @@ on:
env:
CARGO_TERM_COLOR: always
CI: true
WRKFLW_TEST_SKIP_DOCKER: true
jobs:
build:
@@ -49,5 +51,18 @@ jobs:
- name: Build
run: cargo build --verbose
- name: Check Docker Availability on Linux
if: runner.os == 'Linux'
id: docker-check
run: |
if command -v docker &> /dev/null && docker info &> /dev/null; then
echo "docker-available=true" >> $GITHUB_OUTPUT
echo "Docker is available, will run Docker tests"
else
echo "docker-available=false" >> $GITHUB_OUTPUT
echo "Docker is not available, will skip Docker tests"
fi
- name: Run Tests
run: cargo test --verbose
run: cargo test --verbose
timeout-minutes: 10 # Add timeout to prevent tests from running indefinitely