Skip to content

Commit

Permalink
run separately
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Nov 23, 2023
1 parent 26e9e9b commit 07c8dac
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,13 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: pnpm install
- run: pnpm build
- run: pnpm test
- name: packager integration tests
run: |
cd bindings/packager/nodejs
pnpm test
timeout-minutes: 30
- name: updater integration tests
run: |
cd bindings/updater/nodejs
pnpm test
timeout-minutes: 30
1 change: 1 addition & 0 deletions bindings/packager/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"build:debug": "pnpm build:config && pnpm build:ts && napi build --platform",
"prepublishOnly": "napi prepublish -t npm --gh-release-id $RELEASE_ID",
"test": "ava --no-worker-threads",
"pretest": "pnpm run build:ts",
"universal": "napi universal",
"version": "napi version"
},
Expand Down
6 changes: 5 additions & 1 deletion bindings/updater/nodejs/__test__/index.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ const UPDATER_PRIVATE_KEY =
test("it works", async (t) => {
const isWindows = process.platform === "win32";
const isMacos = process.platform === "darwin";
const appDir = join(__dirname, "..", "__test__", "app");
const appDir = join(__dirname, "app");
const target = `${isWindows ? "windows" : isMacos ? "macos" : "linux"}-${
process.arch === "x64" ? "x86_64" : "i686"
}`;

await execa("pnpm", ["build"], {
cwd: join(__dirname, "..", "..", "..", "packager", "nodejs"),
});

const buildApp = async (version, updaterFormats) => {
await writeFile(
join(appDir, "dist", "ver.js"),
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"private": true,
"scripts": {
"build": "pnpm run -r --parallel build",
"test": "pnpm run -r --parallel test",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
Expand Down

0 comments on commit 07c8dac

Please sign in to comment.