Skip to content

Commit

Permalink
Move ci_test into root package
Browse files Browse the repository at this point in the history
  • Loading branch information
rehlma committed Jun 10, 2024
1 parent ce57cc2 commit 6174461
Show file tree
Hide file tree
Showing 51 changed files with 13 additions and 148 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- uses: actions/checkout@v4

- name: Install dependencies using the Puro Sidekick Plugin
run: cd sidekick_test && ./skt flutter pub get
run: cd ci_test && ./skt flutter pub get
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
# See https://www.dartlang.org/guides/libraries/private-files

# Files and directories created by pub
Expand Down
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

3 changes: 2 additions & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Future<void> runSkt(List<String> args) async {
flutterSdkPath: flutterSdkSymlink(),
);
addFlutterSdkInitializer(initializePuro);
print(Directory.current);
print(entryWorkingDirectory.absolute);

runner
..addCommand(FlutterCommand())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ packages:
puro_sidekick_plugin:
dependency: "direct main"
description:
path: "../../puro_sidekick_plugin"
path: "../.."
relative: true
source: path
version: "0.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dev_dependencies:

dependency_overrides:
puro_sidekick_plugin:
path: ../../puro_sidekick_plugin
path: ../../

# generated code, do not edit this manually
sidekick:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ Directory installPuro({
}) {
final puroPath = getPuroPath();

print('puro path: $puroPath');

if (puroPath != null) {
print('Puro is already installed at $puroPath');
return puroPath.parent.parent;
Expand Down
14 changes: 7 additions & 7 deletions puro_sidekick_plugin/lib/src/puro.dart → lib/src/puro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ int puro(

File? getPuroPath() {
String? path;
final result = dcli.find('puro', workingDirectory: getPuroBinPath().path, recursive: false);
path = result.firstLine;
// Try to find puro in PATH
final which = dcli.which('puro');
if (which.found) {
path = which.path;
}
if (path == null) {
// Try to find puro in PATH
final which = dcli.which('puro');
if (which.found) {
path = which.path;
}
final result = dcli.find('puro', workingDirectory: getPuroBinPath().path, recursive: false);
path = result.firstLine;
}
return path != null ? File(path) : null;
}
Expand Down
File renamed without changes.
File renamed without changes.
32 changes: 0 additions & 32 deletions puro_sidekick_plugin/.gitignore

This file was deleted.

35 changes: 0 additions & 35 deletions puro_sidekick_plugin/README.md

This file was deleted.

63 changes: 0 additions & 63 deletions sidekick_test/pubspec.lock

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6174461

Please sign in to comment.