mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-11-26 07:26:18 +01:00
feat: add release preparation workflow and build script for versioned assets (#855)
This commit is contained in:
@@ -174,4 +174,15 @@ Describe 'Launcher archive verification flow' {
|
||||
Should -Invoke Invoke-RestMethod -Times 0 -Exactly -ParameterFilter { $Uri -eq $checksumsUrl -or $Uri -eq $archiveUrl }
|
||||
Should -Invoke Expand-Archive -Times 1 -Exactly
|
||||
}
|
||||
|
||||
It 'downloads the generated source archive when the release has no archive asset' {
|
||||
$state.Release.assets = @($state.Release.assets | Where-Object { $_.name -ne 'Win11Debloat.zip' })
|
||||
$ErrorActionPreference = 'Continue'
|
||||
|
||||
{ & $getScriptPath *> $null } | Should -Throw '*reached extraction*'
|
||||
|
||||
Should -Invoke Invoke-RestMethod -Times 1 -Exactly -ParameterFilter { $Uri -eq $zipballUrl }
|
||||
Should -Invoke Invoke-RestMethod -Times 0 -Exactly -ParameterFilter { $Uri -eq $checksumsUrl -or $Uri -eq $archiveUrl }
|
||||
Should -Invoke Expand-Archive -Times 1 -Exactly
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user