test: improve coverage report. (#751)
This commit is contained in:
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
@@ -2,10 +2,17 @@ name: Test
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "2.0" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "2.0" ]
|
||||||
|
pull_request_target:
|
||||||
|
branches: [ "main", "2.0" ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows:
|
windows:
|
||||||
@@ -50,7 +57,7 @@ jobs:
|
|||||||
thresholds: "10 30"
|
thresholds: "10 30"
|
||||||
- name: Add Coverage PR Comment
|
- name: Add Coverage PR Comment
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
if: github.event_name == 'pull_request'
|
if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
|
||||||
with:
|
with:
|
||||||
recreate: true
|
recreate: true
|
||||||
path: code-coverage-results.md
|
path: code-coverage-results.md
|
||||||
@@ -66,4 +73,4 @@ jobs:
|
|||||||
uses: EnricoMi/publish-unit-test-result-action@v2.18.0
|
uses: EnricoMi/publish-unit-test-result-action@v2.18.0
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
trx_files: "${{ github.workspace }}/**/*.trx"
|
trx_files: "${{ github.workspace }}/**/*.trx"
|
||||||
|
|||||||
Reference in New Issue
Block a user