diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4dcddab6..cfd621d0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,12 +30,11 @@ jobs: dotnet-quality: 'ga' - name: Test Code - working-directory: ./v2rayN - run: dotnet test ./ServiceLib.Tests -c Release --no-build --results-directory ./TestResults -- --report-trx + run: dotnet test --project ./v2rayN/ServiceLib.Tests -c Release --results-directory ./TestResults -- --report-trx - name: Comment PR with results if: always() uses: EnricoMi/publish-unit-test-result-action@v2 with: - files: ./v2rayN/TestResults/*.trx + files: ./TestResults/*.trx comment_mode: failures diff --git a/global.json b/global.json new file mode 100644 index 00000000..802ab217 --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "test": { + "runner": "Microsoft.Testing.Platform" + } +} \ No newline at end of file