mirror of https://github.com/AMT-Cheif/drift.git
Move migration tests directly into actions
This commit is contained in:
parent
7678971d36
commit
85368912f8
|
@ -180,7 +180,32 @@ jobs:
|
||||||
dart_version: ${{ needs.setup.outputs.dart_version }}
|
dart_version: ${{ needs.setup.outputs.dart_version }}
|
||||||
- run: melos bootstrap --no-flutter
|
- run: melos bootstrap --no-flutter
|
||||||
working-directory: .
|
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:
|
migration_integration_tests:
|
||||||
name: "Integration tests for migration tooling"
|
name: "Integration tests for migration tooling"
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in New Issue