mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-05 10:30:38 -06:00
fix: tests
This commit is contained in:
31
.github/workflows/maestro-test.yml
vendored
31
.github/workflows/maestro-test.yml
vendored
@@ -122,36 +122,7 @@ jobs:
|
||||
cores: '4'
|
||||
disable-animations: false
|
||||
avd-name: e2e_emulator
|
||||
script: |
|
||||
attempt=1
|
||||
max_attempts=3
|
||||
success=false
|
||||
|
||||
while [ $attempt -le $max_attempts ]; do
|
||||
echo "Attempt $attempt of $max_attempts..."
|
||||
|
||||
if node scripts/maestro-android.js "https://jellyfin.jellify.app" "jerry"; then
|
||||
echo "Tests passed on attempt $attempt"
|
||||
success=true
|
||||
break
|
||||
else
|
||||
echo "Tests failed on attempt $attempt"
|
||||
|
||||
if [ $attempt -lt $max_attempts ]; then
|
||||
echo "Cleaning up and retrying..."
|
||||
rm -rf *.mp4 || true
|
||||
pkill -f maestro || true
|
||||
sleep 5
|
||||
fi
|
||||
|
||||
attempt=$((attempt + 1))
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$success" = false ]; then
|
||||
echo "All $max_attempts attempts failed"
|
||||
exit 1
|
||||
fi
|
||||
script: bash scripts/maestro-android-retry.sh "https://jellyfin.jellify.app" "jerry"
|
||||
|
||||
|
||||
- name: 🗣️ Notify Success on Discord
|
||||
|
||||
Reference in New Issue
Block a user