From a144d037d5fd61a5487017a2728a78a2602efc01 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Fri, 21 Aug 2026 05:00:41 -0400 Subject: [PATCH] ci(test): generate the untracked workspace before resolving pubspec.yaml, the cw_* dependency wiring, wallet_types.g.dart, and the .secrets.g.dart files are generated and untracked, so the workflow's bare pub get failed on every push since the workflow landed. Mirror the build lanes: description -> generate_pubspec -> coin configure -> generate_new_secrets (empty defaults), then analyze and test. This also makes the CI resolve identical to release builds, so descriptor drift like the cake_backup ref conflict fails here in minutes instead of at release-build time. --- .github/workflows/test.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c90b341ba..2d0b67463 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,8 +67,20 @@ jobs: ./build_bitbox_flutter.sh popd - - name: flutter pub get - run: flutter pub get + # pubspec.yaml, the cw_* wiring in it, wallet_types.g.dart, and the + # .secrets.g.dart files are all GENERATED and untracked; a bare + # `flutter pub get` on a fresh checkout can never succeed. Mirror the + # build lanes' generation sequence (empty secrets are fine for tests). + - name: Generate workspace (pubspec, coin modules, empty secrets) + run: | + set -x -e + cp pubspec_description.yaml pubspec.yaml + flutter pub get + dart run tool/generate_pubspec.dart + flutter pub get + dart run tool/configure.dart --monero --bitcoin --ethereum --polygon --nano --bitcoinCash --wownero --dogecoin --base --arbitrum --bsc + flutter pub get + dart run tool/generate_new_secrets.dart - name: flutter analyze (errors are fatal, existing warnings are not) run: flutter analyze lib --no-fatal-infos --no-fatal-warnings