diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f118701ddf..3e3540d70d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,9 +20,7 @@ jobs: submodules: recursive - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + uses: dtolnay/rust-toolchain@stable - name: Set up Flutter uses: subosito/flutter-action@v2 @@ -31,7 +29,7 @@ jobs: flutter-version: 3.24.0 - name: Set up Java - uses: actions/setup-java@v2 + uses: actions/setup-java@v5 with: java-version: '21' distribution: 'temurin' @@ -64,6 +62,18 @@ jobs: cp rustpush/certs/legacy-fairplay/fairplay.crt rustpush/certs/fairplay/$name.crt done + # Keep the test gate whole rather than maintaining a hand-curated file + # list. This upstream base has no test/ directory yet, so the guard is + # intentionally a clean no-op until Dart tests are present. + - name: Run the complete Dart test suite + run: | + set -euo pipefail + if [ -d test ]; then + flutter test + else + echo "No test/ directory in this upstream base; Dart suite not present." + fi + # First run is expected to fail until ffmpeg_kit_flutter_new is fixed. - name: Run Build Script run: | @@ -72,4 +82,4 @@ jobs: - uses: actions/upload-artifact@v4 with: name: Alpha Debug APK - path: build/app/outputs/flutter-apk/app-alpha-debug.apk \ No newline at end of file + path: build/app/outputs/flutter-apk/app-alpha-debug.apk