From 891228cdb1d53ca76308b7df15c511ff84d27b36 Mon Sep 17 00:00:00 2001 From: Dong Bin <14807942+rabbitism@users.noreply.github.com> Date: Wed, 3 Sep 2025 18:15:59 +0800 Subject: [PATCH] test: improve coverage report. (#751) --- .github/workflows/test.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb0e317..eeeda7a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,10 +2,17 @@ name: Test on: push: - branches: [ "main" ] + branches: [ "main", "2.0" ] pull_request: - branches: [ "main" ] + branches: [ "main", "2.0" ] + pull_request_target: + branches: [ "main", "2.0" ] workflow_dispatch: + +permissions: + contents: read + issues: write + pull-requests: write jobs: windows: @@ -50,7 +57,7 @@ jobs: thresholds: "10 30" - name: Add Coverage PR Comment 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: recreate: true path: code-coverage-results.md @@ -66,4 +73,4 @@ jobs: uses: EnricoMi/publish-unit-test-result-action@v2.18.0 if: always() with: - trx_files: "${{ github.workspace }}/**/*.trx" \ No newline at end of file + trx_files: "${{ github.workspace }}/**/*.trx"