Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: the disk space of CI machines always runs out (#3689)

Lucas.Xu8436bc61449e
diff --git a/.github/workflows/flutter_ci.yaml b/.github/workflows/flutter_ci.yaml
index ad9a6069c1..72e169ca70 100644
--- a/.github/workflows/flutter_ci.yaml
+++ b/.github/workflows/flutter_ci.yaml
@@ -49,6 +49,15 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
+ # the following step is required to avoid running out of space
+ - name: Maximize build space
+ if: matrix.os == 'ubuntu-latest'
+ run: |
+ sudo rm -rf /usr/share/dotnet
+ sudo rm -rf /opt/ghc
+ sudo rm -rf "/usr/local/share/boost"
+ sudo rm -rf "$AGENT_TOOLSDIRECTORY"
+
- name: Checkout source code
uses: actions/checkout@v2
diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml
index d8d8725690..7646011722 100644
--- a/.github/workflows/integration_test.yml
+++ b/.github/workflows/integration_test.yml
@@ -45,6 +45,15 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
+ # the following step is required to avoid running out of space
+ - name: Maximize build space
+ if: matrix.os == 'ubuntu-latest'
+ run: |
+ sudo rm -rf /usr/share/dotnet
+ sudo rm -rf /opt/ghc
+ sudo rm -rf /usr/local/share/boost
+ df -h
+
- name: Checkout source code
uses: actions/checkout@v2
diff --git a/frontend/appflowy_flutter/integration_test/switch_folder_test.dart b/frontend/appflowy_flutter/integration_test/switch_folder_test.dart
index 3ccd95d038..ded49d3bd2 100644
--- a/frontend/appflowy_flutter/integration_test/switch_folder_test.dart
+++ b/frontend/appflowy_flutter/integration_test/switch_folder_test.dart
@@ -1,9 +1,12 @@
+import 'dart:io';
+
import 'package:appflowy/startup/startup.dart';
import 'package:appflowy/startup/tasks/prelude.dart';
import 'package:appflowy/workspace/application/settings/prelude.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:path/path.dart' as p;
+
import 'util/mock/mock_file_picker.dart';
import 'util/util.dart';
@@ -11,6 +14,10 @@ void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
group('customize the folder path', () {
+ if (Platform.isWindows) {
+ return;
+ }
+
testWidgets('switch to B from A, then switch to A again', (tester) async {
const userA = 'UserA';
const userB = 'UserB';