From e2d0d1b79065e6e612d2008f48abf88bac76d01a Mon Sep 17 00:00:00 2001 From: Doug Borg Date: Sat, 7 Feb 2026 13:51:46 -0700 Subject: [PATCH] Replace deleted validation script with flutter test in build scripts Co-Authored-By: Claude Opus 4.6 --- .github/workflows/workflow.yml | 12 ++++++------ do_builds.sh | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 56b4b5f..182466f 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -58,8 +58,8 @@ jobs: - name: Install dependencies run: flutter pub get - - name: Validate localizations - run: dart run scripts/validate_localizations.dart + - name: Run tests + run: flutter test - name: Generate icons and splash screens run: | @@ -110,8 +110,8 @@ jobs: - name: Install dependencies run: flutter pub get - - name: Validate localizations - run: dart run scripts/validate_localizations.dart + - name: Run tests + run: flutter test - name: Generate icons and splash screens run: | @@ -155,8 +155,8 @@ jobs: - name: Install dependencies run: flutter pub get - - name: Validate localizations - run: dart run scripts/validate_localizations.dart + - name: Run tests + run: flutter test - name: Generate icons and splash screens run: | diff --git a/do_builds.sh b/do_builds.sh index 09c0061..b3c5850 100755 --- a/do_builds.sh +++ b/do_builds.sh @@ -80,9 +80,9 @@ fi # Build the dart-define arguments DART_DEFINE_ARGS="--dart-define=OSM_PROD_CLIENTID=$OSM_PROD_CLIENTID --dart-define=OSM_SANDBOX_CLIENTID=$OSM_SANDBOX_CLIENTID" -# Validate localizations before building -echo "Validating localizations..." -dart run scripts/validate_localizations.dart || exit 1 +# Run tests before building +echo "Running tests..." +flutter test || exit 1 echo appver=$(grep "version:" pubspec.yaml | head -1 | cut -d ':' -f 2 | tr -d ' ' | cut -d '+' -f 1)