Skip to content

Commit af1248f

Browse files
committed
Updates workflow.
1 parent e031755 commit af1248f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
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

@@ -28,9 +28,8 @@ jobs:
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

0 commit comments

Comments
 (0)