chore: disable app update on test (#521)
* chore: disable app update on test * chore: add build:test step * Update CI test uses yarn build:test * Plugin pull from npm registry instead of rebuild --------- Co-authored-by: Hien To <tominhhien97@gmail.com>
This commit is contained in:
parent
46739cba78
commit
f02f769f11
6
.github/workflows/jan-electron-build.yml
vendored
6
.github/workflows/jan-electron-build.yml
vendored
@ -52,7 +52,7 @@ jobs:
|
||||
- name: Install yarn dependencies
|
||||
run: |
|
||||
yarn install
|
||||
yarn build:plugins-darwin
|
||||
yarn build:pull-plugins
|
||||
env:
|
||||
APP_PATH: "."
|
||||
DEVELOPER_ID: ${{ secrets.DEVELOPER_ID }}
|
||||
@ -104,7 +104,7 @@ jobs:
|
||||
run: |
|
||||
yarn config set network-timeout 300000
|
||||
yarn install
|
||||
yarn build:plugins
|
||||
yarn build:pull-plugins
|
||||
|
||||
- name: Build and publish app
|
||||
run: |
|
||||
@ -153,7 +153,7 @@ jobs:
|
||||
run: |
|
||||
yarn config set network-timeout 300000
|
||||
yarn install
|
||||
yarn build:plugins
|
||||
yarn build:pull-plugins
|
||||
|
||||
- name: Build and publish app
|
||||
run: |
|
||||
|
||||
@ -46,8 +46,8 @@ jobs:
|
||||
yarn config set network-timeout 300000
|
||||
yarn install
|
||||
yarn lint
|
||||
yarn build:plugins
|
||||
yarn build
|
||||
yarn build:pull-plugins
|
||||
yarn build:test
|
||||
yarn test
|
||||
env:
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
||||
@ -76,9 +76,8 @@ jobs:
|
||||
run: |
|
||||
yarn config set network-timeout 300000
|
||||
yarn install
|
||||
yarn lint
|
||||
yarn build:plugins
|
||||
yarn build:win32
|
||||
yarn build:pull-plugins
|
||||
yarn build:test-win32
|
||||
yarn test
|
||||
|
||||
test-on-ubuntu:
|
||||
@ -105,7 +104,6 @@ jobs:
|
||||
echo -e "Display ID: $DISPLAY"
|
||||
yarn config set network-timeout 300000
|
||||
yarn install
|
||||
yarn lint
|
||||
yarn build:plugins
|
||||
yarn build:linux
|
||||
yarn build:pull-plugins
|
||||
yarn build:test-linux
|
||||
yarn test
|
||||
@ -129,7 +129,9 @@ function handleAppUpdates() {
|
||||
});
|
||||
autoUpdater.autoDownload = false;
|
||||
autoUpdater.autoInstallOnAppQuit = true;
|
||||
autoUpdater.checkForUpdates();
|
||||
if (process.env.CI !== "e2e") {
|
||||
autoUpdater.checkForUpdates();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -53,6 +53,10 @@
|
||||
"test:e2e": "playwright test --workers=1",
|
||||
"dev": "tsc -p . && electron .",
|
||||
"build": "tsc -p . && electron-builder -p never -m",
|
||||
"build:test": "tsc -p . && electron-builder --dir -p never -m",
|
||||
"build:test-darwin": "tsc -p . && electron-builder -p never -m --x64 --arm64 --dir",
|
||||
"build:test-win32": "tsc -p . && electron-builder -p never -w --dir",
|
||||
"build:test-linux": "tsc -p . && electron-builder -p never -l --dir",
|
||||
"build:darwin": "tsc -p . && electron-builder -p never -m --x64 --arm64",
|
||||
"build:win32": "tsc -p . && electron-builder -p never -w",
|
||||
"build:linux": "tsc -p . && electron-builder -p never --linux deb",
|
||||
|
||||
@ -22,13 +22,18 @@
|
||||
"dev:electron": "yarn workspace jan dev",
|
||||
"dev:web": "yarn workspace jan-web dev",
|
||||
"dev": "concurrently --kill-others \"yarn dev:web\" \"wait-on http://localhost:3000 && yarn dev:electron\"",
|
||||
"test-local": "yarn lint && yarn build && yarn test",
|
||||
"test-local": "yarn lint && yarn build:test && yarn test",
|
||||
"build:core": "cd core && yarn install && yarn run build",
|
||||
"build:web": "yarn workspace jan-web build && cpx \"web/out/**\" \"electron/renderer/\"",
|
||||
"build:electron": "yarn workspace jan build",
|
||||
"build:electron:test": "yarn workspace jan build:test",
|
||||
"build:pull-plugins": "rimraf ./electron/core/pre-install/*.tgz && cd ./electron/core/pre-install && npm pack @janhq/inference-plugin @janhq/data-plugin @janhq/model-management-plugin @janhq/monitoring-plugin",
|
||||
"build:plugins": "rimraf ./electron/core/pre-install/*.tgz && concurrently --kill-others-on-fail \"cd ./plugins/data-plugin && npm install && npm run postinstall\" \"cd ./plugins/inference-plugin && npm install && npm run postinstall\" \"cd ./plugins/model-management-plugin && npm install && npm run postinstall\" \"cd ./plugins/monitoring-plugin && npm install && npm run postinstall\" && concurrently --kill-others-on-fail \"cd ./plugins/data-plugin && npm run build:publish\" \"cd ./plugins/inference-plugin && npm run build:publish\" \"cd ./plugins/model-management-plugin && npm run build:publish\" \"cd ./plugins/monitoring-plugin && npm run build:publish\"",
|
||||
"build:plugins-darwin": "rimraf ./electron/core/pre-install/*.tgz && concurrently \"cd ./plugins/data-plugin && npm install && npm run build:deps && npm run postinstall\" \"cd ./plugins/inference-plugin && npm install && npm run postinstall\" \"cd ./plugins/model-management-plugin && npm install && npm run postinstall\" \"cd ./plugins/monitoring-plugin && npm install && npm run postinstall\" && chmod +x ./.github/scripts/auto-sign.sh && ./.github/scripts/auto-sign.sh && concurrently \"cd ./plugins/data-plugin && npm run build:publish\" \"cd ./plugins/inference-plugin && npm run build:publish\" \"cd ./plugins/model-management-plugin && npm run build:publish\" \"cd ./plugins/monitoring-plugin && npm run build:publish\"",
|
||||
"build": "yarn build:web && yarn build:electron",
|
||||
"build:test": "yarn build:web && yarn build:electron:test",
|
||||
"build:test-darwin": "yarn build:web && yarn workspace jan build:test-darwin",
|
||||
"build:test-win32": "yarn build:web && yarn workspace jan build:test-win32",
|
||||
"build:test-linux": "yarn build:web && yarn workspace jan build:test-linux",
|
||||
"build:darwin": "yarn build:web && yarn workspace jan build:darwin",
|
||||
"build:win32": "yarn build:web && yarn workspace jan build:win32",
|
||||
"build:linux": "yarn build:web && yarn workspace jan build:linux",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user