Skip to content

Commit

Permalink
Testing CodeCoverageSummary
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Aug 1, 2024
1 parent d76faf8 commit 8feb360
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 22 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/testing-from-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,25 @@ jobs:
pwd
ls -al | grep 'coverage'
- name: Pre-processing Coverage Report
run: sed -i 's#filename="#filename="backend-api/src/#g' ./*.xml
- name: Code Coverage Summary Report
uses: irongut/[email protected]
with:
filename: ./coverage.xml
badge: true
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '85'

- name: Publish Coverage Report to Pull Request
uses: 5monkeys/cobertura-action@master
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
path: ./coverage.xml
minimum_coverage: 85
skip_covered: true # Set to true to remove 100% covered from report
fail_below_threshold: false # Fails the action if 85% threshold is not met
show_missing: true
only_changed_files: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
recreate: true
path: code-coverage-results.md

# a11y-testing:
# runs-on: ubuntu-latest
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/testing-from-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,25 @@ jobs:
pwd
ls -al | grep 'coverage'
- name: Pre-processing Coverage Report
run: sed -i 's#filename="#filename="backend-api/src/#g' ./*.xml
- name: Code Coverage Summary Report
uses: irongut/[email protected]
with:
filename: ./coverage.xml
badge: true
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '85'

- name: Publish Coverage Report to Pull Request
uses: 5monkeys/cobertura-action@master
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
path: ./coverage.xml
minimum_coverage: 85
skip_covered: true # Set to true to remove 100% covered from report
fail_below_threshold: false # Fails the action if 85% threshold is not met
show_missing: true
only_changed_files: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
recreate: true
path: code-coverage-results.md

# a11y-testing:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 8feb360

Please sign in to comment.