diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c862949..c4e89894 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -180,7 +180,32 @@ jobs: dart_version: ${{ needs.setup.outputs.dart_version }} - run: melos bootstrap --no-flutter working-directory: . - - run: tool/misc_integration_test.sh + - name: Postgres integration tests + working-directory: extras/drift_postgres + run: | + dart pub upgrade + dart test + - name: MariaDB integration tests + working-directory: extras/drift_mariadb + run: | + dart pub upgrade + dart test + - name: Integration test with built_value + working-directory: examples/with_built_value + run: | + dart pub upgrade + dart run build_runner build --delete-conflicting-outputs + - name: Integration test with modular generation + working-directory: examples/modular + run: | + dart pub upgrade + dart run build_runner build --delete-conflicting-outputs + dart run bin/example.dart + - name: Integration test for migrations example + working-directory: examples/migrations_example + run: | + dart pub upgrade + dart test migration_integration_tests: name: "Integration tests for migration tooling" diff --git a/tool/misc_integration_test.sh b/tool/misc_integration_test.sh deleted file mode 100755 index 25e11180..00000000 --- a/tool/misc_integration_test.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -pushd extras/drift_postgres -echo "Running integration tests with Postgres" -dart pub upgrade -dart test -popd - -pushd extras/drift_mariadb -echo "Running integration tests with MariaDb" -dart pub upgrade -dart test -popd - -pushd examples/with_built_value -echo "Running build runner in with_built_value" -dart pub upgrade -dart run build_runner build --delete-conflicting-outputs -popd - -pushd examples/modular -echo "Running build runner in modular example" -dart pub upgrade -dart run build_runner build --delete-conflicting-outputs -dart run bin/example.dart -popd - -pushd examples/migrations_example -echo "Testing migrations in migrations_example" -dart pub upgrade -dart test -popd