From 0646797587af4f5ec92ec479e61ba534a69838a6 Mon Sep 17 00:00:00 2001 From: Codefarmer Date: Mon, 23 Sep 2024 11:29:38 +0100 Subject: [PATCH] fix: catalog ci --- .github/workflows/catalog.yaml | 11 ++++++++--- .github/workflows/shared-workflow.yaml | 8 -------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/catalog.yaml b/.github/workflows/catalog.yaml index 9c3b104..cb56ca7 100644 --- a/.github/workflows/catalog.yaml +++ b/.github/workflows/catalog.yaml @@ -30,9 +30,14 @@ jobs: packages/catalog/.dart_tool key: ${{ runner.os }}-pub-${{ hashFiles('packages/catalog/pubspec.yaml') }} - - name: Install dependencies - run: flutter pub get - working-directory: packages/catalog + - name: Enable melos + run: dart pub global activate melos + + - name: Get packages + run: melos bootstrap + + - name: Generate Files + run: melos generate - name: Build Web run: flutter build web diff --git a/.github/workflows/shared-workflow.yaml b/.github/workflows/shared-workflow.yaml index c18270b..89780e3 100644 --- a/.github/workflows/shared-workflow.yaml +++ b/.github/workflows/shared-workflow.yaml @@ -78,10 +78,6 @@ jobs: - name: Generate Files run: melos generate - - name: Install dependencies - run: flutter pub get - working-directory: packages/${{ inputs['package-name'] }} - - name: Check formatting run: dart format --set-exit-if-changed . working-directory: packages/${{ inputs['package-name'] }} @@ -137,10 +133,6 @@ jobs: - name: Generate Files run: melos generate - - name: Install dependencies - run: flutter pub get - working-directory: packages/${{ inputs['package-name'] }} - - name: Build Android run: flutter build apk --release --build-name=${{ inputs.build-version }} --build-number=${{ inputs.build-number }} working-directory: packages/${{ inputs['package-name'] }}