From c4d3f8db8769418925a9909ac700edc5f425a068 Mon Sep 17 00:00:00 2001 From: Edwin Joassart Date: Thu, 30 May 2024 11:44:50 +0200 Subject: [PATCH] patch: fix missing windows dependency --- .github/actions/test/action.yml | 6 ++++++ npm-shrinkwrap.json | 3 ++- package.json | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 80841b7b83..e4af64d0d3 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -55,6 +55,12 @@ runs: # fi npm ci + + # as the shrinkwrap might have been done on mac/linux, this is ensure the package is there for windows + if [[runner.os == 'Windows']]; then + npm install winusb-driver-generator + fi + npm run lint npm run package npm run wdio # test stage, note that it requires the package to be done first diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 1edcb34e4a..e08706090b 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -88,7 +88,8 @@ }, "optionalDependencies": { "bufferutil": "^4.0.8", - "utf-8-validate": "^5.0.10" + "utf-8-validate": "^5.0.10", + "winusb-driver-generator": "2.1.2" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 9b990147f8..51a3ad5734 100644 --- a/package.json +++ b/package.json @@ -151,6 +151,7 @@ }, "optionalDependencies": { "bufferutil": "^4.0.8", - "utf-8-validate": "^5.0.10" + "utf-8-validate": "^5.0.10", + "winusb-driver-generator": "2.1.2" } }