Fixed some unit tests and add test step to run on Windows/Mac builds (#2466)

* Fixed some unit tests and add test step to run on Windows/Mac builds

* Update failing test

* Fix backlash

* Fix windows run

* Fix Windows again

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Devin Binnie
2022-12-14 17:10:20 -04:00
committed by GitHub
parent e63a293b28
commit 29f10f1467
6 changed files with 16 additions and 12 deletions

View File

@@ -198,6 +198,7 @@ jobs:
command: nvm off; choco install nodejs-lts -y
- run: npm i -g node-gyp; node-gyp install; node-gyp install --devdir="$env:USERPROFILE\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers"
- run: $env:PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = 1; npm ci
- run: $env:ELECTRON_DISABLE_SANDBOX=1; npm run test:unit
- build:
os: windows
path: ./build/win
@@ -222,6 +223,7 @@ jobs:
command: nvm install --lts && nvm use --lts
- run: jq '.mac.target=["zip"]' electron-builder.json | jq '.mac.gatekeeperAssess=false' > /tmp/electron-builder.json && cp /tmp/electron-builder.json .
- run: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm ci
- run: ELECTRON_DISABLE_SANDBOX=1 npm run test:unit-ci
- build:
os: mac
path: ./build/macos