From 02b26343486e8dda5b1b34b6eb3302f696e1acd3 Mon Sep 17 00:00:00 2001 From: Mike Maietta Date: Wed, 17 Aug 2022 07:25:58 -0700 Subject: [PATCH 1/2] fix: updating integration test for prerelease flag --- test/src/updater/nsisUpdaterTest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/updater/nsisUpdaterTest.ts b/test/src/updater/nsisUpdaterTest.ts index 8940420450..0655080616 100644 --- a/test/src/updater/nsisUpdaterTest.ts +++ b/test/src/updater/nsisUpdaterTest.ts @@ -47,7 +47,7 @@ test("github allowPrerelease=true", async () => { updater.updateConfigPath = await writeUpdateConfig({ provider: "github", owner: "mmaietta", - repo: "electron-builder-test", + repo: "electron-builder-test-prerelease", }) const updateCheckResult = await updater.checkForUpdates() expect(removeUnstableProperties(updateCheckResult?.updateInfo)).toMatchSnapshot() @@ -59,7 +59,7 @@ test("github allowPrerelease=false", async () => { updater.updateConfigPath = await writeUpdateConfig({ provider: "github", owner: "mmaietta", - repo: "electron-builder-test", + repo: "electron-builder-test-prerelease", }) const updateCheckResult = await updater.checkForUpdates() expect(removeUnstableProperties(updateCheckResult?.updateInfo)).toMatchSnapshot() From eb842bf60f54947c81a6f73b85015d6e2b82737d Mon Sep 17 00:00:00 2001 From: Mike Maietta Date: Wed, 17 Aug 2022 08:13:34 -0700 Subject: [PATCH 2/2] updating snapshots for new prerelease repo assets --- .github/workflows/test.yaml | 2 +- test/snapshots/updater/nsisUpdaterTest.js.snap | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8395ba0ee6..66ac130085 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -71,7 +71,7 @@ jobs: # Need to separate from other tests because logic is specific to when TOKEN env vars are set test-updater: - runs-on: macos-latest + runs-on: ubuntu-latest steps: - name: Checkout code repository uses: actions/checkout@v3 diff --git a/test/snapshots/updater/nsisUpdaterTest.js.snap b/test/snapshots/updater/nsisUpdaterTest.js.snap index 3cbd3d2202..1c37a50819 100644 --- a/test/snapshots/updater/nsisUpdaterTest.js.snap +++ b/test/snapshots/updater/nsisUpdaterTest.js.snap @@ -407,10 +407,10 @@ Object { Object { "sha512": "@sha512", "size": "@size", - "url": "electron-quick-start-typescript-1.0.2-arm64.exe", + "url": "electron-quick-start-typescript-1.0.2-x64.exe", }, ], - "path": "electron-quick-start-typescript-1.0.2-arm64.exe", + "path": "electron-quick-start-typescript-1.0.2-x64.exe", "releaseDate": "@releaseDate", "releaseName": "1.0.2", "releaseNotes": "", @@ -426,10 +426,10 @@ Object { Object { "sha512": "@sha512", "size": "@size", - "url": "electron-quick-start-typescript-2.0.0-arm64.exe", + "url": "electron-quick-start-typescript-2.0.0-x64.exe", }, ], - "path": "electron-quick-start-typescript-2.0.0-arm64.exe", + "path": "electron-quick-start-typescript-2.0.0-x64.exe", "releaseDate": "@releaseDate", "releaseName": "2.0.0", "releaseNotes": "",