This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8a44cc
commit 326f4ee
Showing
1 changed file
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,31 +46,31 @@ jobs: | |
run: dotnet build | ||
- name: Test | ||
run: dotnet test --logger "trx;LogFileName=test-results.trx" --collect:"XPlat Code Coverage" | ||
- name: Test Reporting | ||
uses: phoenix-actions/test-reporting@v8 | ||
id: test-report | ||
if: success() || failure() | ||
with: | ||
name: 'Unit Test' | ||
path: './src/TDesign.Test/TestResults/*' | ||
reporter: 'dotnet-trx' | ||
- name: Generate Report | ||
run: | | ||
echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}" | ||
#- name: Test Reporting | ||
# uses: phoenix-actions/test-reporting@v8 | ||
# id: test-report | ||
# if: success() || failure() | ||
# with: | ||
# name: 'Unit Test' | ||
# path: './src/TDesign.Test/TestResults/*' | ||
# reporter: 'dotnet-trx' | ||
#- name: Generate Report | ||
# run: | | ||
# echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}" | ||
|
||
- name: Dotnet Test Reporter | ||
uses: bibipkins/[email protected] | ||
if: github.repository_owner == 'tdesign-blazor' | ||
with: | ||
github-token: ${{ env.GITHUB_TOKEN }} | ||
test-results: ./src/TDesign.Test/TestResults/ | ||
test-coverage: ./src/TDesign.Test/TestResults/**/*coverage*.xml | ||
min-coverage: 80 | ||
comment-title: 'Unit Test Results' | ||
- name: PR Comment | ||
uses: github-actions-up-and-running/[email protected] | ||
with: | ||
repo-token: ${{ env.GITHUB_TOKEN }} | ||
message: 查看测试结果 ${{ steps.test-report.outputs.runHtmlUrl }} | ||
#- name: Dotnet Test Reporter | ||
# uses: bibipkins/[email protected] | ||
# if: github.repository_owner == 'tdesign-blazor' | ||
# with: | ||
# github-token: ${{ env.GITHUB_TOKEN }} | ||
# test-results: ./src/TDesign.Test/TestResults/ | ||
# test-coverage: ./src/TDesign.Test/TestResults/**/*coverage*.xml | ||
# min-coverage: 80 | ||
# comment-title: 'Unit Test Results' | ||
#- name: PR Comment | ||
# uses: github-actions-up-and-running/[email protected] | ||
# with: | ||
# repo-token: ${{ env.GITHUB_TOKEN }} | ||
# message: 查看测试结果 ${{ steps.test-report.outputs.runHtmlUrl }} | ||
|
||
|