fix(ci): bound critical alarm tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user