Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhnroyal committed Apr 4, 2024
1 parent c97b7fa commit e7a60aa
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/coverage_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'coverage_comment'

on:
workflow_run:
workflows: ['Verify packages abilities']
types:
- completed

jobs:
download_coverage:
runs-on: ubuntu-latest
if: github.event.workflow_run.payload.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request'
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
run_id: ${{ github.event.workflow_run.id }}
name: code-coverage-results.md
path: .
- name: Add PR comment
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ github.event.workflow_run.payload.workflow_run.pull_requests[0].number }}
recreate: true
path: code-coverage-results.md
12 changes: 5 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,8 @@ jobs:
with:
artifact_download_workflow_names: 'Verify packages abilities,coverage_baseline'
filename: 'coverage/cobertura.xml'
# - name: '[Coverage] Add PR comment'
# uses: marocchino/sticky-pull-request-comment@v2
# #Make sure the report was generated and that the event is actually a pull request, run if failed or success
# if: ${{ matrix.sdk == 'stable' && github.actor != 'dependabot[bot]' && steps.code_coverage_report.outputs.file != '' && (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && (success() || failure()) }}
# with:
# recreate: true
# path: code-coverage-results.md
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: code-coverage-results.md
path: code-coverage-results.md

0 comments on commit e7a60aa

Please sign in to comment.