Przeglądaj źródła

chore: retry codecov

Lucas.Xu 1 rok temu
rodzic
commit
63eee8b415

+ 13 - 6
.github/workflows/flutter_ci.yaml

@@ -102,6 +102,7 @@ jobs:
             git config --system core.longpaths true
             flutter config --enable-windows-desktop
           fi
+          dart pub global activate protoc_plugin 20.0.1
         shell: bash
 
       - name: Build AppFlowy
@@ -119,10 +120,16 @@ jobs:
         run: |
           cargo make dart_unit_test
 
-      - uses: codecov/codecov-action@v3
+      - name: Upload coverage to Codecov
+        uses: Wandalen/wretry.action@master
         with:
-          name: appflowy
-          flags: appflowy_flutter_unit_test
-          fail_ci_if_error: true
-          verbose: true
-          os: ${{ matrix.os }}
+          action: codecov/codecov-action@v3
+          with: |
+            name: appflowy
+            flags: appflowy_flutter_unit_test
+            fail_ci_if_error: true
+            verbose: true
+            os: ${{ matrix.os }}
+          attempt_limit: 5
+          attempt_delay: 10000
+

+ 12 - 6
.github/workflows/integration_test.yml

@@ -92,6 +92,7 @@ jobs:
           elif [ "$RUNNER_OS" == "Windows" ]; then
             flutter config --enable-windows-desktop
           fi
+          dart pub global activate protoc_plugin 20.0.1
         shell: bash
 
       - name: Build Test lib
@@ -121,10 +122,15 @@ jobs:
           fi
         shell: bash
 
-      - uses: codecov/codecov-action@v3
+      - name: Upload coverage to Codecov
+        uses: Wandalen/wretry.action@master
         with:
-          name: appflowy
-          flags: appflowy_flutter_integrateion_test
-          fail_ci_if_error: true
-          verbose: true
-          os: ${{ matrix.os }}
+          action: codecov/codecov-action@v3
+          with: |
+            name: appflowy
+            flags: appflowy_flutter_integrateion_test
+            fail_ci_if_error: true
+            verbose: true
+            os: ${{ matrix.os }}
+          attempt_limit: 5
+          attempt_delay: 10000

+ 1 - 0
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart

@@ -107,6 +107,7 @@ class _AppFlowyEditorPageState extends State<AppFlowyEditorPage> {
     if (widget.scrollController == null) {
       effectiveScrollController.dispose();
     }
+
     super.dispose();
   }