From 70b23c37a0d4bf8e7ce525630795e1d03af91ae2 Mon Sep 17 00:00:00 2001 From: Emi Date: Wed, 27 Sep 2023 19:25:32 +0200 Subject: [PATCH] Test bootstraping project on windows in powershell (CI step) --- .github/actions/setup-env/action.yml | 12 ++++++++++++ packages/desktop/package.json | 2 +- packages/mobile/package.json | 3 ++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml index 56af1bd3d7..6dd3507fe9 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -51,6 +51,7 @@ runs: shell: bash - name: "Bootstrap project" + if: ${{ runner.os != 'Windows' }} run: | if [[ ! -z "${{ inputs.bootstrap-packages }}" ]] then @@ -59,3 +60,14 @@ runs: lerna bootstrap fi shell: bash + + - name: "Bootstrap project on windows" + if: ${{ runner.os == 'Windows' }} + run: | + if [[ ! -z "${{ inputs.bootstrap-packages }}" ]] + then + lerna bootstrap --scope '{${{ inputs.bootstrap-packages }},}' + else + lerna bootstrap + fi + shell: powershell diff --git a/packages/desktop/package.json b/packages/desktop/package.json index f617c9aad8..7d8ab9876e 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -111,7 +111,7 @@ "build:renderer:prod": "webpack --config webpack/webpack.config.renderer.prod.js", "postBuild": "node scripts/postBuild.js", "prestart": "npm run build:main", - "start": "cross-env DATA_DIR=testwindn DEBUG='backend*,quiet*,state-manager*,desktop*,libp2p:websockets:listener:backend' npm run start:renderer", + "start": "cross-env DEBUG='backend*,quiet*,state-manager*,desktop*,libp2p:websockets:listener:backend' npm run start:renderer", "start:main": "cross-env NODE_ENV=development electron .", "start:renderer": "cross-env NODE_ENV=development webpack-dev-server --config webpack/webpack.config.renderer.dev.js", "storybook": "export NODE_OPTIONS=--openssl-legacy-provider && start-storybook -p 6006", diff --git a/packages/mobile/package.json b/packages/mobile/package.json index 3a0d264b3c..11bba26561 100644 --- a/packages/mobile/package.json +++ b/packages/mobile/package.json @@ -26,7 +26,8 @@ "prepare:windows": "npm run prepare-backend-assets && npm run override-dlopen && npm run build", "version": "react-native-version --skip-tag" }, - "dependencies": { "@peculiar/webcrypto": "^1.4.3", + "dependencies": { + "@peculiar/webcrypto": "^1.4.3", "@quiet/backend": "^2.0.1-alpha.1", "@quiet/common": "^2.0.1-alpha.1", "@quiet/identity": "^2.0.1-alpha.1",