From 0d708961de4c382af6c35e6d2babb77a9dfeb74e Mon Sep 17 00:00:00 2001 From: Benoit Nau Date: Wed, 6 Sep 2023 13:38:50 +0200 Subject: [PATCH] Windows tests --- .github/workflows/release-windows.yaml | 4 +++- package.json | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-windows.yaml b/.github/workflows/release-windows.yaml index 753a1f23..dd732b8e 100644 --- a/.github/workflows/release-windows.yaml +++ b/.github/workflows/release-windows.yaml @@ -32,7 +32,9 @@ jobs: node-gyp install --devdir="C:\Users\runneradmin\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers" --arch ia32 npm ci --openssl_fips='' - name: release/test - run: npm run test:unit-ci-win + env: + ELECTRON_DISABLE_SANDBOX: "1" + run: npm run test:unit-ci - name: release/build run: | npm run package:windows-nsis diff --git a/package.json b/package.json index e69c4361..14e12dce 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,6 @@ "test:e2e:send-report": "node ./e2e/save_report.js", "test:unit": "jest", "test:unit-ci": "jest --runInBand", - "test:unit-ci-win": "jest --testTimeout=5000", "test:coverage": "jest --coverage", "package:all": "cross-env NODE_ENV=production npm-run-all package:windows package:windows-nsis package:mac package:mac-with-universal package:linux", "package:windows": "npm-run-all build-prod && electron-builder --win zip --x64 --ia32 --arm64 --publish=never",