Skip to content

Commit d10e168

Browse files
committed
Run executable
1 parent 5ea5eac commit d10e168

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/run-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ jobs:
147147
echo "TEST_PROJECT_PATH=$projectPath" >> $env:GITHUB_ENV
148148
echo "TEST_ASSEMBLY_NAME=$filenameWithoutExtension" >> $env:GITHUB_ENV
149149
150+
- name: Set executable extension (Windows)
151+
if: inputs.os == 'windows-latest'
152+
shell: pwsh
153+
run: |
154+
echo "TEST_EXECUTABLE_EXTENSION=.exe" >> $env:GITHUB_ENV
155+
150156
- name: Build test project
151157
if: ${{ ! inputs.requiresNugets }}
152158
env:
@@ -220,7 +226,7 @@ jobs:
220226
TEST_LOG_PATH: ${{ github.workspace }}/artifacts/log/test-logs
221227
TestsRunningOutsideOfRepo: true
222228
run: >
223-
dotnet exec ${{ env.TEST_ASSEMBLY_NAME }}.dll
229+
${{ env.TEST_ASSEMBLY_NAME }}${{ env.TEST_EXECUTABLE_EXTENSION }}
224230
--report-trx --report-trx-filename "${{ inputs.testShortName }}.trx"
225231
--hangdump --hangdump-timeout ${{ inputs.testHangTimeout }}
226232
--crashdump

0 commit comments

Comments
 (0)