Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Update pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
teacher-zhou committed Aug 8, 2023
1 parent a8a44cc commit 326f4ee
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}


0 comments on commit 326f4ee

Please sign in to comment.