From 339fc08e15cb0504adfd43a7c604022e457fd863 Mon Sep 17 00:00:00 2001 From: thomashii Date: Sat, 8 Jan 2022 14:59:52 +0800 Subject: [PATCH] Added ORM postgresql action --- .github/workflows/dart.yml | 15 +++++++++++++++ packages/orm/angel_orm_postgres/pubspec.yaml | 10 +++++----- .../orm/angel_orm_postgres/test/all_test.dart | 3 ++- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 4055710b..57766ac9 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -101,3 +101,18 @@ jobs: working-directory: packages/orm/angel_orm_test run: dart analyze . + # Angel3 ORM PostgreSQL + - id: angel3_orm_postgres_upgrade + name: angel3_orm_postgres; Upgrade depedencies + working-directory: packages/orm/angel_orm_postgres + run: dart pub upgrade + + - name: angel3_orm_postgres; Verify formatting + working-directory: packages/orm/angel_orm_postgres + run: dart format --output=none --set-exit-if-changed . + + # Consider passing '--fatal-infos' for slightly stricter analysis. + - name: angel3_orm_postgres; Analyze source code + working-directory: packages/orm/angel_orm_postgres + run: dart analyze . + diff --git a/packages/orm/angel_orm_postgres/pubspec.yaml b/packages/orm/angel_orm_postgres/pubspec.yaml index d14bfccf..068c5fde 100644 --- a/packages/orm/angel_orm_postgres/pubspec.yaml +++ b/packages/orm/angel_orm_postgres/pubspec.yaml @@ -16,8 +16,8 @@ dev_dependencies: angel3_orm_test: ^3.0.0 test: ^1.17.5 lints: ^1.0.0 -#dependency_overrides: -# angel3_orm_test: -# path: ../angel_orm_test -# angel3_orm: -# path: ../angel_orm +dependency_overrides: + angel3_orm_test: + path: ../angel_orm_test + angel3_orm: + path: ../angel_orm diff --git a/packages/orm/angel_orm_postgres/test/all_test.dart b/packages/orm/angel_orm_postgres/test/all_test.dart index 61ccd764..4d7b7374 100644 --- a/packages/orm/angel_orm_postgres/test/all_test.dart +++ b/packages/orm/angel_orm_postgres/test/all_test.dart @@ -31,6 +31,7 @@ void main() { () => manyToManyTests(pg(['user', 'role', 'user_role']), close: closePg)); group('standalone', () => standaloneTests(pg(['car']), close: closePg)); - group('join', () => joinTests(pg(['person', 'person_order']), close: closePg)); + group('join', + () => joinTests(pg(['person', 'person_order']), close: closePg)); }); }