diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index eaba29bd..668efc77 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -71,8 +71,6 @@ jobs: run: | $ErrorActionPreference = "Stop" - Install-Module EZOut -Scope CurrentUser -RequiredVersion 2.0.6 -Force - & ./PwshSpectreConsole/Build.ps1 $env:PSModulePath = @($env:PSModulePath, ".\PwshSpectreConsole\") -join ":" Invoke-Pester -CI -ExcludeTag "ExcludeCI" diff --git a/.github/workflows/unit-test-only.yml b/.github/workflows/unit-test-only.yml index 00d02e23..428797b2 100644 --- a/.github/workflows/unit-test-only.yml +++ b/.github/workflows/unit-test-only.yml @@ -18,7 +18,6 @@ jobs: run: | $ErrorActionPreference = "Stop" Write-Host "Working on ${{ github.ref }}" - Install-Module EZOut -Scope CurrentUser -RequiredVersion 2.0.6 -Force & .\PwshSpectreConsole\Build.ps1 $env:PSModulePath = @($env:PSModulePath, ".\PwshSpectreConsole\") -join ":" $PSVersionTable | Out-Host diff --git a/PwshSpectreConsole/PwshSpectreConsole.EzFormat.ps1 b/PwshSpectreConsole/PwshSpectreConsole.EzFormat.ps1 deleted file mode 100644 index 8b77e02e..00000000 --- a/PwshSpectreConsole/PwshSpectreConsole.EzFormat.ps1 +++ /dev/null @@ -1,39 +0,0 @@ -#requires -Module EZOut -# Install-Module EZOut or https://github.com/StartAutomating/EZOut -$myFile = $MyInvocation.MyCommand.ScriptBlock.File -$myModuleName = $($myFile | Split-Path -Leaf) -replace '\.ezformat\.ps1', '' -replace '\.ezout\.ps1', '' -$myRoot = $myFile | Split-Path -Push-Location $myRoot -$formatting = @( - # Add your own Write-FormatView here, - # or put them in a Formatting or Views directory - foreach ($potentialDirectory in 'Formatting','Views','Types') { - Join-Path $myRoot $potentialDirectory | - Get-ChildItem -ea ignore | - Import-FormatView -FilePath {$_.Fullname} - } -) - -$destinationRoot = $myRoot - -if ($formatting) { - $myFormatFilePath = Join-Path $destinationRoot "$myModuleName.format.ps1xml" - # You can also output to multiple paths by passing a hashtable to -OutputPath. - $formatting | Out-FormatData -Module $MyModuleName -OutputPath $myFormatFilePath -} - -$types = @( - # Add your own Write-TypeView statements here - # or declare them in the 'Types' directory - Join-Path $myRoot Types | - Get-Item -ea ignore | - Import-TypeView - -) - -if ($types) { - $myTypesFilePath = Join-Path $destinationRoot "$myModuleName.types.ps1xml" - # You can also output to multiple paths by passing a hashtable to -OutputPath. - $types | Out-TypeData -OutputPath $myTypesFilePath -} -Pop-Location