File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646
4747 - name : Build
4848 run : dotnet build src\IoTPowerShellAgent\IoTPowerShellAgent.csproj --configuration Debug /p:Version=${{ steps.version.outputs.version }}
49-
50- - name : Test
51- run : dotnet test src\IoTPowerShellAgent.Tests\IoTPowerShellAgent.Tests.csproj --configuration Debug --logger trx
52-
53- - name : Run Pester Tests
54- shell : pwsh
55- run : |
56- if (Test-Path "src\IoTPowerShellAgent.Tests.Pester\run-pester.ps1") {
57- Set-Location src\IoTPowerShellAgent.Tests.Pester
58- .\run-pester.ps1 -OutputFormat NUnitXml -OutputFile PesterResults.xml
59- Set-Location ..\..
60- } else {
61- Write-Host "Pester tests not found, skipping..."
62- }
63-
64- - name : Publish test results
65- if : always()
66- uses : EnricoMi/publish-unit-test-result-action/composite@v2
67- with :
68- files : " **/*.trx,**/PesterResults.xml"
Original file line number Diff line number Diff line change 4444
4545 - name : Build
4646 run : dotnet build src\IoTPowerShellAgent\IoTPowerShellAgent.csproj --configuration Release /p:Version=${{ steps.version.outputs.version }}
47-
48- - name : Test
49- run : dotnet test src\IoTPowerShellAgent.Tests\IoTPowerShellAgent.Tests.csproj --configuration Release --logger trx
50-
51- - name : Run Pester Tests
52- shell : pwsh
53- run : |
54- if (Test-Path "src\IoTPowerShellAgent.Tests.Pester\run-pester.ps1") {
55- Set-Location src\IoTPowerShellAgent.Tests.Pester
56- .\run-pester.ps1 -OutputFormat NUnitXml -OutputFile PesterResults.xml
57- Set-Location ..\..
58- } else {
59- Write-Host "Pester tests not found, skipping..."
60- }
61-
62- - name : Publish test results
63- if : always()
64- uses : EnricoMi/publish-unit-test-result-action/composite@v2
65- with :
66- files : " **/*.trx,**/PesterResults.xml"
You can’t perform that action at this time.
0 commit comments