Skip to content

Commit

Permalink
Test bootstraping project on windows in powershell (CI step)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiM committed Sep 28, 2023
1 parent f19abb8 commit c874a3f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ runs:
shell: bash

- name: "Bootstrap project"
if: ${{ runner.os != 'Windows' }}
run: |
if [[ ! -z "${{ inputs.bootstrap-packages }}" ]]
then
Expand All @@ -59,3 +60,13 @@ runs:
lerna bootstrap
fi
shell: bash

- name: "Bootstrap project on windows"
if: ${{ runner.os == 'Windows' }}
run: |
if ( "${{ inputs.bootstrap-packages }}" ) {
lerna bootstrap --scope '{${{ inputs.bootstrap-packages }},}'
} else {
lerna bootstrap
}
shell: powershell
2 changes: 1 addition & 1 deletion packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c874a3f

Please sign in to comment.