File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1818 runs-on : windows-latest
1919
2020 steps :
21- - uses : actions/checkout@v3
21+ - uses : actions/checkout@v4
2222 with :
2323 fetch-depth : 0
2424
2828
2929 wix.exe extension add WixToolset.UI.wixext --global
3030
31- Invoke-RestMethod -Uri https://www.nuget.org/api/v2/package/WixToolset.Heat -OutFile .\WixToolset.Heat.nupkg -ErrorAction Stop
32- Expand-Archive .\WixToolset.Heat.nupkg -DestinationPath .\heat -ErrorAction Stop
33- Get-ChildItem -Path .\heat -Recurse |
31+ nuget.exe install WixToolset.Heat -NonInteractive
32+ Get-ChildItem -Path .\WixToolset.Heat* -Recurse |
3433 Where-Object { $_.FullName.EndsWith('x64\heat.exe') } |
3534 Select-Object -ExpandProperty DirectoryName |
3635 Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
@@ -118,14 +117,19 @@ jobs:
118117 ./ps-serilog.msi
119118 if-no-files-found : error
120119
121- - name : Test installer
120+ - name : Install msi
122121 run : |
123122 $process = Start-Process msiexec.exe -ArgumentList '/i','ps-serilog.msi','/qn' -Wait -NoNewWindow -PassThru -ErrorAction Stop
124123 if ($process.ExitCode -ne 0)
125124 {
126125 throw 'Non zero exit code: "{0}".' -f $process.ExitCode
127126 }
128127
128+ - name : Test module
129+ shell : powershell
130+ run : |
131+ $PSVersionTable
132+
129133 $logger = New-SerilogLoggerConfiguration |Add-SerilogSinkConsole |New-SerilogLogger |Set-SerilogDefaultLogger
130134 $logger.Information('Hello world!')
131135 Close-SerilogDefaultLogger
You can’t perform that action at this time.
0 commit comments