From 64bcd8b5d6fa9871d388d0c18647bc2541254f81 Mon Sep 17 00:00:00 2001 From: kevmoo Date: Thu, 9 Apr 2026 16:22:12 -0700 Subject: [PATCH 1/3] chore: update actions No need to use Flutter - Dart is fine --- .github/workflows/build.yml | 61 ++++++++++++++++--------------------- .github/workflows/docs.yml | 15 ++++----- 2 files changed, 33 insertions(+), 43 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1de74542..df0dde41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: strategy: fail-fast: false matrix: - dart-version: [stable, beta] + dart-version: ['3.9', stable, dev] defaults: run: @@ -69,9 +69,9 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: subosito/flutter-action@v2.7.1 + - uses: dart-lang/setup-dart@v1 with: - channel: ${{ matrix.dart-version }} + sdk: ${{ matrix.dart-version }} - name: Cache pub dependencies uses: actions/cache@v4 @@ -82,19 +82,20 @@ jobs: pub-${{ matrix.dart-version }}- pub- - - name: Install Melos - run: dart pub global activate melos + - run: dart pub global activate melos working-directory: . - - name: Bootstrap workspace - run: melos bootstrap + - run: melos bootstrap working-directory: . - - name: Check format - run: dart format --set-exit-if-changed . + - run: dart format --set-exit-if-changed . + if: matrix.dart-version == 'dev' + + - run: dart analyze + if: matrix.dart-version != 'dev' - - name: Analyze - run: dart analyze + - run: dart analyze --fatal-infos + if: matrix.dart-version == 'dev' test: name: Test (Dart ${{ matrix.dart-version }}) @@ -122,11 +123,11 @@ jobs: java-version: '21' distribution: 'temurin' - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 - - uses: subosito/flutter-action@v2.7.1 + - uses: dart-lang/setup-dart@v1 with: - channel: ${{ matrix.dart-version }} + sdk: ${{ matrix.dart-version }} - name: Cache pub dependencies uses: actions/cache@v4 @@ -150,16 +151,13 @@ jobs: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH echo "PUB_CACHE=$HOME/.pub-cache" >> $GITHUB_ENV - - name: Install Melos - run: dart pub global activate melos + - run: dart pub global activate melos working-directory: . - - name: Bootstrap workspace - run: melos bootstrap + - run: melos bootstrap working-directory: . - - name: Install Firebase CLI - run: npm install -g firebase-tools + - run: npm install -g firebase-tools - name: Run dart_firebase_admin tests with coverage run: ${{ github.workspace }}/scripts/coverage.sh @@ -349,9 +347,9 @@ jobs: with: fetch-depth: 2 - - uses: subosito/flutter-action@v2.7.1 + - uses: dart-lang/setup-dart@v1 with: - channel: ${{ matrix.dart-version }} + sdk: ${{ matrix.dart-version }} - name: Authenticate to Google Cloud/Firebase uses: google-github-actions/auth@v2 @@ -373,12 +371,10 @@ jobs: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH echo "PUB_CACHE=$HOME/.pub-cache" >> $GITHUB_ENV - - name: Install Melos - run: dart pub global activate melos + - run: dart pub global activate melos working-directory: . - - name: Bootstrap workspace - run: melos bootstrap + - run: melos bootstrap working-directory: . - name: Run WIF auth test @@ -408,9 +404,9 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: subosito/flutter-action@v2.7.1 + - uses: dart-lang/setup-dart@v1 with: - channel: ${{ matrix.dart-version }} + sdk: ${{ matrix.dart-version }} - name: Cache pub dependencies uses: actions/cache@v4 @@ -421,13 +417,10 @@ jobs: pub-${{ matrix.dart-version }}- pub- - - name: Install Melos - run: dart pub global activate melos + - run: dart pub global activate melos working-directory: . - - name: Bootstrap workspace - run: melos bootstrap + - run: melos bootstrap working-directory: . - - name: Verify package - run: dart pub publish --dry-run + - run: dart pub publish --dry-run diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 00b69d56..d0da34b1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -3,7 +3,7 @@ name: Deploy Documentation on: push: branches: - - next + - main pull_request: workflow_dispatch: @@ -26,12 +26,11 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: subosito/flutter-action@v2 + - uses: dart-lang/setup-dart@v1 with: - channel: stable + sdk: stable - - name: Cache pub dependencies - uses: actions/cache@v3 + - uses: actions/cache@v3 with: path: ~/.pub-cache key: pub-docs-${{ hashFiles('**/pubspec.lock') }} @@ -39,11 +38,9 @@ jobs: pub-docs- pub- - - name: Install Melos - run: dart pub global activate melos + - run: dart pub global activate melos - - name: Bootstrap workspace - run: melos bootstrap + - run: melos bootstrap - name: Generate documentation run: melos run docs --no-select From 5b7305c8433fae6119ed5de521aff2965781ceba Mon Sep 17 00:00:00 2001 From: kevmoo Date: Thu, 9 Apr 2026 17:03:15 -0700 Subject: [PATCH 2/3] Bump actions to latest versions --- .github/workflows/build.yml | 20 ++++++++++---------- .github/workflows/docs.yml | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df0dde41..53ccb34a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: timeout-minutes: 5 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Download addlicense run: | @@ -67,14 +67,14 @@ jobs: working-directory: packages/dart_firebase_admin steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: dart-lang/setup-dart@v1 with: sdk: ${{ matrix.dart-version }} - name: Cache pub dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.pub-cache key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }} @@ -114,7 +114,7 @@ jobs: working-directory: packages/dart_firebase_admin steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 2 @@ -130,7 +130,7 @@ jobs: sdk: ${{ matrix.dart-version }} - name: Cache pub dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.pub-cache key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }} @@ -139,7 +139,7 @@ jobs: pub- - name: Cache Firebase CLI - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.cache/firebase/emulators key: firebase-emulators @@ -343,7 +343,7 @@ jobs: working-directory: packages/dart_firebase_admin steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 2 @@ -358,7 +358,7 @@ jobs: service_account: '${{ secrets.SERVICE_ACCOUNT }}' - name: Cache pub dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.pub-cache key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }} @@ -402,14 +402,14 @@ jobs: working-directory: packages/dart_firebase_admin steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: dart-lang/setup-dart@v1 with: sdk: ${{ matrix.dart-version }} - name: Cache pub dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.pub-cache key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d0da34b1..92a06396 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -30,7 +30,7 @@ jobs: with: sdk: stable - - uses: actions/cache@v3 + - uses: actions/cache@v5 with: path: ~/.pub-cache key: pub-docs-${{ hashFiles('**/pubspec.lock') }} @@ -46,7 +46,7 @@ jobs: run: melos run docs --no-select - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v7 with: path: doc From 762e2cf3c6494f81e8be51c631a430cc80f556ba Mon Sep 17 00:00:00 2001 From: kevmoo Date: Thu, 9 Apr 2026 17:23:20 -0700 Subject: [PATCH 3/3] oops! --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 92a06396..2904ab57 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -46,7 +46,7 @@ jobs: run: melos run docs --no-select - name: Upload artifact - uses: actions/upload-pages-artifact@v7 + uses: actions/upload-pages-artifact@v4 with: path: doc