Replace deleted validation script with flutter test in build scripts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Doug Borg
2026-02-07 13:51:46 -07:00
parent 61a2a99bbc
commit e2d0d1b790
2 changed files with 9 additions and 9 deletions

View File

@@ -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: |

View File

@@ -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)