Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

senzing-garage/sz-sdk-csharp#35 add chsarp pr comment #170

Merged
merged 13 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/csharp-coverage-comment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: chsarp coverage comment

on:
workflow_call:
inputs:
thresholds:
default: "80 90"
required: false
type: string

permissions:
pull-requests: write

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v4
id: download
with:
pattern: coverage.cobertura.xml

- name: Code Coverage Summary Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
badge: true
fail_below_min: true
filename: "coverage.cobertura.xml/coverage.cobertura.xml"
format: markdown
hide_branch_rate: false
hide_complexity: false
indicators: true
output: both
thresholds: ${{ inputs.thresholds }}

- name: Add Coverage PR Comment
if: github.event_name == 'pull_request'
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
path: code-coverage-results.md
2 changes: 1 addition & 1 deletion .github/workflows/python-coverage-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
workflow_call:

permissions:
pull-requests: write
contents: write
pull-requests: write

jobs:
coverage:
Expand Down