mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-28 07:58:51 +05:00
fix: Improve GitHub Actions workflows and add comprehensive tests
GitHub Actions improvements: - Fix release workflow to prevent draft releases on new workflow runs - Add automatic deletion of previous releases with same tag - Improve test workflow with torrent-engine-downloads branch support - Update Flutter version and add code generation step - Add Android lint checks and debug APK builds - Remove emoji from all workflow outputs for cleaner logs - Add make_latest flag for proper release versioning Test improvements: - Add comprehensive unit tests for TorrentInfo model - Add tests for FilePriority enum with comparison operators - Add DownloadsProvider tests for utility methods - Add widget tests for UI components and interactions - Test video file detection and main file selection - Test torrent state detection (downloading, paused, completed) - Test byte formatting for file sizes and speeds All tests validate the torrent downloads functionality and ensure proper integration with Android engine.
This commit is contained in:
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -6,6 +6,7 @@ on:
|
||||
- main
|
||||
- dev
|
||||
- 'feature/**'
|
||||
- 'torrent-engine-downloads'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
@@ -22,15 +23,19 @@ jobs:
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: '3.35.5'
|
||||
flutter-version: '3.19.6'
|
||||
channel: 'stable'
|
||||
cache: true
|
||||
|
||||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Run code generation
|
||||
run: |
|
||||
dart run build_runner build --delete-conflicting-outputs || true
|
||||
|
||||
- name: Run Flutter Analyze
|
||||
run: flutter analyze
|
||||
run: flutter analyze --no-fatal-infos
|
||||
|
||||
- name: Check formatting
|
||||
run: dart format --set-exit-if-changed .
|
||||
|
||||
Reference in New Issue
Block a user