From 4d566a0cbc1b8cf793acaec8800e71ee63ef081d Mon Sep 17 00:00:00 2001 From: Ellet Date: Sat, 14 Dec 2024 23:42:07 +0300 Subject: [PATCH] ci: running pub_get.dart on Windows --- .github/workflows/tests.yml | 6 ++++++ scripts/pub_get.dart | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 92e9f44..b24dd8a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/scripts/pub_get.dart b/scripts/pub_get.dart index 4fb16d9..e43f7f1 100644 --- a/scripts/pub_get.dart +++ b/scripts/pub_get.dart @@ -4,10 +4,6 @@ import 'packages.dart'; void main(List args) { for (final package in packages) { - Process.runSync( - 'flutter', - ['pub', 'get', '-C', package], - runInShell: true, - ); + Process.runSync('flutter', ['pub', 'get', '-C', package]); } }