mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: cloud integration test (#4062)
This commit is contained in:
parent
5f94ba129e
commit
a4e0c5754f
@ -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=
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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';
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user