From 40b058e0e03a059389a2c6396d4a4eed7c85549e Mon Sep 17 00:00:00 2001 From: thomashii Date: Sat, 8 Jan 2022 13:23:54 +0800 Subject: [PATCH] Added ORM action --- .github/FUNDING.yml | 1 - .github/workflows/dart.yml | 29 +++++++++++++++++++++++++---- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index ce3081f7..2fff9cdc 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,2 @@ # These are supported funding model platforms -github: [thosakwe] diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index fdfdc3c9..86270784 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -19,10 +19,6 @@ jobs: steps: - uses: actions/checkout@v2 - # Note: This workflow uses the latest stable version of the Dart SDK. - # You can specify other versions if desired, see documentation here: - # https://github.com/dart-lang/setup-dart/blob/main/README.md - # - uses: dart-lang/setup-dart@v1 - uses: dart-lang/setup-dart@v1 with: sdk: "2.15.1" @@ -43,3 +39,28 @@ jobs: - name: framework; Run tests working-directory: packages/framework run: dart test + + jobs_002: + name: Validate ORM packages + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: dart-lang/setup-dart@v1 + with: + sdk: "2.15.1" + + - id: angel_orm_upgrade + working-directory: packages/orm/angel_orm + run: dart pub upgrade + + - name: angel_orm; Verify formatting + working-directory: packages/framework + run: dart format --output=none --set-exit-if-changed . + + # Consider passing '--fatal-infos' for slightly stricter analysis. + - name: angel_orm; Analyze source code + working-directory: packages/framework + run: dart analyze . +