File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,20 @@ jobs:
1616 fetch-depth : 0
1717 lfs : true
1818
19- - name : Test
20- id : test
19+ - name : Build and Test
20+ id : build
2121 shell : powershell
2222 run : |
2323 .\build.ps1 -Task Test -Bootstrap -ErrorAction Stop
24- "BHBuildOutput =$($env:BHBuildOutput)" | Add-Content "$($env:GITHUB_OUTPUT)"
24+ "ModulePath =$($env:BHBuildOutput)" | Add-Content "$($env:GITHUB_OUTPUT)"
2525
26+ - name : Publish Windows Test Results
27+ uses : EnricoMi/publish-unit-test-result-action/windows@v2
28+ with :
29+ files : |
30+ tests/out/*.xml
31+
32+ - uses : actions/upload-artifact@v4
33+ with :
34+ name : MilestoneSystems.PowerShell.MediaDB
35+ path : ${{ steps.build.outputs.ModulePath }}
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ Context "Export-Mdb" {
1212 $password = ' rzxW&s3Ftw' | ConvertTo-SecureString - AsPlainText - Force
1313 Open-MediaDatabase - Path $script :EncryptedDbPath - Password $password
1414 $sequences = Get-MdbCamera | Get-MdbSequence - Type RecordingSequence
15- Write-Host " Found $ ( $sequences.Count ) sequences" - ForegroundColor Cyan
1615 $folder = $sequences | ForEach-Object {
1716 $path = ' TestDrive:\{0}_{1}_Database' -f $_.Source , $_.Start.ToString (' yyyy-MM-dd_HH-mm-ss' )
1817 $exportParams = @ {
@@ -21,7 +20,6 @@ Context "Export-Mdb" {
2120 Path = $path
2221 ErrorAction = ' Stop'
2322 }
24- Write-Host " Exporting to $path " - ForegroundColor Magenta
2523 $_ | Export-Mdb @exportParams
2624 }
2725 $folder | Should -Not - BeNullOrEmpty
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ Context "Export-MdbMkv" {
2020 Path = $path
2121 ErrorAction = ' Stop'
2222 }
23- Write-Host " Exporting to $path " - ForegroundColor Magenta
2423 $_ | Export-MdbMkv @exportParams
2524 }
2625 $mkvFile | Should -Not - BeNullOrEmpty
You can’t perform that action at this time.
0 commit comments