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)