Skip to content

Commit

Permalink
Powershell Syntax Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
enusbaum committed Sep 28, 2024
1 parent 86b4389 commit d10dea6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ jobs:

- name: Run Unit Tests
working-directory: ${{env.GITHUB_WORKSPACE}}
shell: pwsh # Ensures this step runs with PowerShell
run: |
# Find test DLLs (adjust this path as needed based on your project's output structure)
testDlls=$(Get-ChildItem -Path ./vstudio/bin/${{env.BUILD_CONFIGURATION}} -Filter *.Tests.dll -Recurse)
$testDlls = Get-ChildItem -Path "./vstudio/bin/${{env.BUILD_CONFIGURATION}}" -Filter *.Tests.dll -Recurse
# Run the tests
foreach ($dll in $testDlls) {
&"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\TestPlatform\vstest.console.exe" $dll
&"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\TestPlatform\vstest.console.exe" $dll.FullName
}

0 comments on commit d10dea6

Please sign in to comment.