ci: cloud integration test (#4062)

This commit is contained in:
Nathan.fooo 2023-12-01 14:47:10 -08:00 committed by GitHub
parent 5f94ba129e
commit a4e0c5754f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 24 deletions

View File

@ -1,20 +1,5 @@
# Only used for integration test
# Cloud Type Configuration
# Use this configuration file to specify the cloud type and its associated settings. The available cloud types are:
# Local: 0
# Supabase: 1
# AppFlowy Cloud: 2
# By default, it's set to Local.
CLOUD_TYPE=1
# Supabase Configuration
# If using Supabase (CLOUD_TYPE=1), provide the following details:
SUPABASE_URL=
SUPABASE_ANON_KEY=
# AppFlowy Cloud Configuration
# If using Supabase (CLOUD_TYPE=2), provide the following details:
#
# When using localhost for development. you can use the following settings:
APPFLOWY_CLOUD_URL=

View File

@ -266,5 +266,5 @@ Future<void> useSupabaseCloud() async {
Future<void> useAppFlowyCloud() async {
await setAuthenticatorType(AuthenticatorType.appflowyCloud);
await setAppFlowyCloudUrl(Some(TestEnv.afCloudUrl));
// await setAppFlowyCloudUrl(Some(TestEnv.afCloudUrl));
}

View File

@ -7,13 +7,6 @@ part 'cloud_env_test.g.dart';
///
@Envied(path: '.env.cloud.test')
abstract class TestEnv {
@EnviedField(
obfuscate: true,
varName: 'CLOUD_TYPE',
defaultValue: '0',
)
static final int cloudType = _TestEnv.cloudType;
/// AppFlowy Cloud Configuration
@EnviedField(
obfuscate: true,

View File

@ -29,6 +29,7 @@ import 'package:appflowy/workspace/application/user/prelude.dart';
import 'package:appflowy/workspace/application/view/prelude.dart';
import 'package:appflowy/workspace/application/workspace/prelude.dart';
import 'package:appflowy/workspace/presentation/home/menu/menu_shared_state.dart';
import 'package:appflowy_backend/log.dart';
import 'package:appflowy_backend/protobuf/flowy-folder2/view.pb.dart';
import 'package:appflowy_backend/protobuf/flowy-user/protobuf.dart';
import 'package:flowy_infra/file_picker/file_picker_impl.dart';

View File

@ -51,7 +51,6 @@ AppFlowyConfiguration _makeAppFlowyConfiguration(
required Map<String, String> rustEnvs,
}) {
final env = getIt<AppFlowyCloudSharedEnv>();
rustEnvs["RUST_LOG"] = 'trace';
return AppFlowyConfiguration(
root: root,
custom_app_path: customAppPath,