fix(ci): bound critical alarm tests
Build & Deploy PluriWave / Build APK + AAB release (push) Has been cancelled
Build & Deploy PluriWave / Análisis de código (push) Has been cancelled

This commit is contained in:
2026-05-28 23:54:18 +02:00
parent cf994757a4
commit 8f77550a05
2 changed files with 42 additions and 6 deletions
+28 -4
View File
@@ -30,11 +30,35 @@ jobs:
- name: Analizar código
run: flutter analyze --no-fatal-infos --no-fatal-warnings
- name: Ejecutar tests criticos
- name: Ejecutar tests críticos
run: |
flutter test \
test/estado/estado_alarmas_test.dart \
test/servicios/servicio_programacion_alarmas_test.dart
python3 - <<'PY'
import subprocess
import sys
tests = [
'test/servicios/servicio_programacion_alarmas_test.dart',
'test/estado/estado_alarmas_test.dart',
]
for test_path in tests:
cmd = [
'flutter',
'test',
'--concurrency=1',
'--timeout=60s',
'--reporter=expanded',
test_path,
]
print('$ ' + ' '.join(cmd), flush=True)
try:
result = subprocess.run(cmd, timeout=180)
except subprocess.TimeoutExpired:
print(f'ERROR: timeout ejecutando {test_path}', file=sys.stderr, flush=True)
sys.exit(124)
if result.returncode != 0:
sys.exit(result.returncode)
PY
build:
name: Build APK + AAB release