Skip to content

Commit

Permalink
ci: running pub_get.dart on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoEllet committed Dec 14, 2024
1 parent 73b093e commit 4d566a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ jobs:
cache: true

- name: 📦 Install all package dependencies
if: runner.os != 'Windows'
run: dart ./scripts/pub_get.dart

- name: 📦 Install all package dependencies on Windows
if: runner.os == 'Windows'
run: dart ./scripts/pub_get.dart
shell: pwsh

- name: 📦 Install example dependencies
run: flutter pub get -C quill_native_bridge/example

Expand Down
6 changes: 1 addition & 5 deletions scripts/pub_get.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import 'packages.dart';

void main(List<String> args) {
for (final package in packages) {
Process.runSync(
'flutter',
['pub', 'get', '-C', package],
runInShell: true,
);
Process.runSync('flutter', ['pub', 'get', '-C', package]);
}
}

0 comments on commit 4d566a0

Please sign in to comment.