Skip to content

Commit 8f26c6a

Browse files
Add more logs
1 parent 3d4dfd4 commit 8f26c6a

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

dist/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68268,7 +68268,9 @@ var tool_cache = __nccwpck_require__(3472);
6826868268

6826968269
class CliInstaller {
6827068270
async install(downloadUrl) {
68271+
console.info(`Downloading 1Password CLI from: ${downloadUrl}`);
6827168272
const downloadPath = await tool_cache.downloadTool(downloadUrl);
68273+
console.info(`Extracting 1Password CLI from: ${downloadPath}`);
6827268274
const extractedPath = await tool_cache.extractZip(downloadPath);
6827368275
core.addPath(extractedPath);
6827468276
core.info(`1Password CLI installed at ${extractedPath}`);
@@ -68349,6 +68351,7 @@ class MacOSInstaller extends CliInstaller {
6834968351
await super.install(downloadUrl);
6835068352
return;
6835168353
}
68354+
core.info("Installing 1Password CLI using MacOS .pkg installer");
6835268355
const pkgPath = await tool_cache.downloadTool(downloadUrl);
6835368356
const { stderr } = await execAsync(`sudo installer -pkg ${pkgPath} -target /`);
6835468357
if (stderr) {

src/cli-installer/cli-installer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import * as tc from "@actions/tool-cache";
33

44
export class CliInstaller {
55
async install(downloadUrl: string): Promise<void> {
6+
console.info(`Downloading 1Password CLI from: ${downloadUrl}`);
67
const downloadPath = await tc.downloadTool(downloadUrl);
8+
console.info(`Extracting 1Password CLI from: ${downloadPath}`);
79
const extractedPath = await tc.extractZip(downloadPath);
810
core.addPath(extractedPath);
911
core.info(`1Password CLI installed at ${extractedPath}`);

src/cli-installer/macos.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export class MacOSInstaller extends CliInstaller implements Installer {
3333
return;
3434
}
3535

36+
core.info("Installing 1Password CLI using MacOS .pkg installer");
3637
const pkgPath = await tc.downloadTool(downloadUrl);
3738
const { stderr } = await execAsync(`sudo installer -pkg ${pkgPath} -target /`);
3839
if (stderr) {

src/version/version-resolver.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,4 @@ describe("VersionResolver", () => {
4242
await versionResolver.resolve();
4343
expect(versionResolver.get()).toBe("v1.0.0");
4444
});
45-
46-
test("should resolve beta version without 'v' prefix", async () => {
47-
const versionResolver = new VersionResolver("2.19.0-beta.01");
48-
await versionResolver.resolve();
49-
expect(versionResolver.get()).toBe("v2.19.0-beta.01");
50-
});
51-
52-
test("should resolve beta version with 'v' prefix", async () => {
53-
const versionResolver = new VersionResolver("v2.19.0-beta.01");
54-
await versionResolver.resolve();
55-
expect(versionResolver.get()).toBe("v2.19.0-beta.01");
56-
});
5745
});

0 commit comments

Comments
 (0)