Skip to content

Commit

Permalink
ci: add e2e tests for user flows
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfenrain committed Mar 1, 2023
1 parent 6725564 commit 482362a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions actions/log_action/pubspec_overrides.yaml

This file was deleted.

This file was deleted.

11 changes: 7 additions & 4 deletions tools/setup_local_environment.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:io';
import 'package:path/path.dart' as path;

void main() {
void main() async {
final localSetup = '''
dependency_overrides:
fluttium:
Expand All @@ -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)));
}

0 comments on commit 482362a

Please sign in to comment.