From 482362a5bfe9133ad11d8e3eb578f4e324bef342 Mon Sep 17 00:00:00 2001 From: Jochum van der Ploeg Date: Wed, 1 Mar 2023 21:23:00 +0100 Subject: [PATCH] ci: add e2e tests for user flows --- .gitignore | 2 ++ actions/log_action/pubspec_overrides.yaml | 7 ------- .../expect_environment_text/pubspec_overrides.yaml | 7 ------- tools/setup_local_environment.dart | 11 +++++++---- 4 files changed, 9 insertions(+), 18 deletions(-) delete mode 100644 actions/log_action/pubspec_overrides.yaml delete mode 100644 example/actions/expect_environment_text/pubspec_overrides.yaml diff --git a/.gitignore b/.gitignore index 00d62122..3c9fbf9e 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,8 @@ coverage # Ignore any pubspec overrides needed for local development bricks/**/__brick__/pubspec_overrides.yaml example/pubspec_overrides.yaml +example/actions/**/pubspec_overrides.yaml +actions/**/pubspec_overrides.yaml # Ingore generated test runner .test_runner.dart \ No newline at end of file diff --git a/actions/log_action/pubspec_overrides.yaml b/actions/log_action/pubspec_overrides.yaml deleted file mode 100644 index bdb70647..00000000 --- a/actions/log_action/pubspec_overrides.yaml +++ /dev/null @@ -1,7 +0,0 @@ -dependency_overrides: - fluttium: - path: ../../packages/fluttium - fluttium_protocol: - path: ../../packages/fluttium_protocol - fluttium_interfaces: - path: ../../packages/fluttium_interfaces diff --git a/example/actions/expect_environment_text/pubspec_overrides.yaml b/example/actions/expect_environment_text/pubspec_overrides.yaml deleted file mode 100644 index c4cc380a..00000000 --- a/example/actions/expect_environment_text/pubspec_overrides.yaml +++ /dev/null @@ -1,7 +0,0 @@ -dependency_overrides: - fluttium: - path: ../../../packages/fluttium - fluttium_protocol: - path: ../../../packages/fluttium_protocol - fluttium_interfaces: - path: ../../../packages/fluttium_interfaces diff --git a/tools/setup_local_environment.dart b/tools/setup_local_environment.dart index 94d39482..4cf75f80 100644 --- a/tools/setup_local_environment.dart +++ b/tools/setup_local_environment.dart @@ -1,7 +1,7 @@ import 'dart:io'; import 'package:path/path.dart' as path; -void main() { +void main() async { final localSetup = ''' dependency_overrides: fluttium: @@ -12,7 +12,10 @@ dependency_overrides: path: ${path.canonicalize(path.join(Directory.current.path, 'packages/fluttium_interfaces'))} '''; - File('example/pubspec_overrides.yaml').writeAsStringSync(localSetup); - File('bricks/fluttium_test_runner/__brick__/pubspec_overrides.yaml') - .writeAsStringSync(localSetup); + await Future.wait([ + File('actions/log_action/pubspec_overrides.yaml'), + File('example/pubspec_overrides.yaml'), + File('example/actions/expect_environment_text/pubspec_overrides.yaml'), + File('bricks/fluttium_test_runner/__brick__/pubspec_overrides.yaml'), + ].map((f) => f.writeAsString(localSetup))); }