diff --git a/.github/workflows/publish_backend.yaml b/.github/workflows/publish_backend.yaml index 7ca0005..4a64f7c 100644 --- a/.github/workflows/publish_backend.yaml +++ b/.github/workflows/publish_backend.yaml @@ -1,4 +1,4 @@ -name: Deploy Dart Frog Backend +name: Test & Deploy Dart Frog Backend on: push: @@ -21,10 +21,20 @@ jobs: uses: dart-lang/setup-dart@v1 - name: Install Dependencies - run: | - cd backend - dart pub get - cd .. + working-directory: ./backend + run: dart pub get + + - name: Get dependencies (core) + working-directory: ./core + run: flutter pub get + + - name: Run build_runner (core) + working-directory: ./core + run: flutter pub run build_runner build --delete-conflicting-outputs + + - name: Run Tests + working-directory: ./backend + run: dart test - name: Install Globe CLI run: dart pub global activate globe_cli diff --git a/backend/README.md b/backend/README.md index 16bd2ea..a71c1c2 100644 --- a/backend/README.md +++ b/backend/README.md @@ -26,6 +26,7 @@ export MONGO_CONNECTION_STRING="mongodb://:@:/