@@ -16,13 +16,14 @@ function countOccurrences(content: string, needle: string): number {
1616
1717describe ( "release workflows" , ( ) => {
1818 it ( "requires Vela CLI only for beta mac arm64 packaging" , async ( ) => {
19- const [ beta , betaSelfHosted , preview , stable , buildMac , buildWin , prepareWin , publishPlatform ] = await Promise . all ( [
19+ const [ beta , betaSelfHosted , preview , stable , buildMac , buildWin , prepareMac , prepareWin , publishPlatform ] = await Promise . all ( [
2020 readFile ( new URL ( "../../../.github/workflows/release-beta.yml" , import . meta. url ) , "utf8" ) ,
2121 readFile ( new URL ( "../../../.github/workflows/release-beta-s.yml" , import . meta. url ) , "utf8" ) ,
2222 readFile ( new URL ( "../../../.github/workflows/release-preview.yml" , import . meta. url ) , "utf8" ) ,
2323 readFile ( new URL ( "../../../.github/workflows/release-stable.yml" , import . meta. url ) , "utf8" ) ,
2424 readFile ( new URL ( "../../../.github/workflow/scripts/release/build-platform.sh" , import . meta. url ) , "utf8" ) ,
2525 readFile ( new URL ( "../../../.github/workflow/scripts/release/build-platform.ps1" , import . meta. url ) , "utf8" ) ,
26+ readFile ( new URL ( "../../../.github/workflow/scripts/release/prepare-platform-assets.sh" , import . meta. url ) , "utf8" ) ,
2627 readFile ( new URL ( "../../../.github/workflow/scripts/release/prepare-platform-assets.ps1" , import . meta. url ) , "utf8" ) ,
2728 readFile ( new URL ( "../../../.github/workflow/scripts/release/storage/publish-platform.ts" , import . meta. url ) , "utf8" ) ,
2829 ] ) ;
@@ -72,6 +73,9 @@ describe("release workflows", () => {
7273 expect ( betaSelfHosted ) . toContain ( "summary-metadata.ts" ) ;
7374 expect ( win ) . toContain ( "-IncludeZip $${{ inputs.win_x64_target == 'all' || inputs.win_x64_target == 'zip' }}" ) ;
7475 expect ( selfHostedWin ) . toContain ( "-IncludeZip $${{ inputs.win_x64_target == 'all' || inputs.win_x64_target == 'zip' }}" ) ;
76+ expect ( prepareMac ) . not . toContain ( "required RELEASE_ASSET_SUFFIX" ) ;
77+ expect ( prepareMac ) . toContain ( 'RELEASE_ASSET_SUFFIX="${RELEASE_ASSET_SUFFIX:-}"' ) ;
78+ expect ( prepareWin ) . toContain ( "[AllowEmptyString()]" ) ;
7579 expect ( prepareWin ) . toContain ( "$sourcePayload = [string]$build.payloadPath" ) ;
7680 expect ( prepareWin ) . toContain ( "open-design-$ReleaseVersion$ReleaseAssetSuffix-win-x64-payload.7z" ) ;
7781 expect ( publishPlatform ) . toContain ( "open-design-${releaseVersion}${assetSuffix}-win-x64-payload.7z" ) ;
0 commit comments