Move migration tests directly into actions

This commit is contained in:
Simon Binder 2023-08-02 17:41:50 +02:00
parent 7678971d36
commit 85368912f8
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 26 additions and 33 deletions

View File

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

View File

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