File tree Expand file tree Collapse file tree 4 files changed +6
-12
lines changed
Expand file tree Collapse file tree 4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -68268,7 +68268,9 @@ var tool_cache = __nccwpck_require__(3472);
6826868268
6826968269class 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) {
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import * as tc from "@actions/tool-cache";
33
44export 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 } ` ) ;
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments