From ce764903ff41c64442f509004d8294d5f4f5ba8f Mon Sep 17 00:00:00 2001 From: --global Date: Wed, 22 May 2024 15:08:42 +0700 Subject: [PATCH] TW-1781: fix the ci issue --- .github/workflows/gh-pages.yaml | 2 +- .github/workflows/tests.yaml | 2 +- scripts/code_analyze.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 11d13340fa..6ff6441015 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -56,7 +56,7 @@ jobs: flutter config --enable-web flutter clean flutter pub get - flutter pub run build_runner build --delete-conflicting-outputs + flutter pub run build_runner build --delete-conflicting-outputs flutter pub get flutter build web --release --verbose --source-maps --base-href="/${GITHUB_REPOSITORY##*/}/$FOLDER/" echo "$TWAKE_PREVIEW_CONFIG" | yq '.issue_id = strenv(FOLDER)' > ./build/web/config.json diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 79fa19ef15..2bbdd13ba3 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -56,7 +56,7 @@ jobs: - name: Run widget test run: | - flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs + flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs && flutter pub get flutter test # integration_test: diff --git a/scripts/code_analyze.sh b/scripts/code_analyze.sh index 757645616c..9a8066c726 100755 --- a/scripts/code_analyze.sh +++ b/scripts/code_analyze.sh @@ -1,4 +1,4 @@ #!/bin/sh -ve -flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs +flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs && flutter pub get dart format --set-exit-if-changed lib/ test/ flutter analyze