Skip to content

Commit 7328385

Browse files
committedNov 22, 2024
Simplify test execution in CI workflow
Replaced manual test setup and execution steps with the Setup-VSTest action to streamline the CI process. This reduces complexity and leverages a more standardized approach for running tests. Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
1 parent ce149f8 commit 7328385

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed
 

‎.github/workflows/dotnet.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,8 @@ jobs:
3434
run: msbuild "SubtitleEdit.sln" /p:Configuration=Release
3535

3636
# Run unit-tests
37-
- name: Download tests binary zip
38-
run: powershell Invoke-WebRequest -Uri "https://localworker.blob.core.windows.net/win-x64/tests.zip" -OutFile "./tests.zip"
39-
- name: Unzip tests binary
40-
run: powershell Expand-Archive -Path tests.zip -DestinationPath ./
41-
- name: Run tests
42-
uses: microsoft-approved-actions/vstest@master
43-
with:
44-
testAssembly: src\Test\bin\Release\Test.dll
45-
runInParallel: true
46-
# run: dotnet test --no-build --verbosity normal "SubtitleEdit.sln"
47-
# run: vstest.console "src\Test\bin\Release\Test.dll"
37+
- name: Setup VSTest Path
38+
uses: darenm/Setup-VSTest@v1.2
39+
40+
- name: VSTest
41+
run: vstest.console.exe /Platform:x64 "src\Test\bin\Release\Test.dll"

0 commit comments

Comments
 (0)