Skip to content

Commit

Permalink
chore: add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 committed Mar 17, 2023
1 parent 1c2a4fe commit 70c7b67
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Code coverage CI
on: [pull_request]

jobs:
build:
runs-on: [ self-hosted, Linux ]
steps:
- uses: actions/checkout@v3

- name: Monitor coverage
uses: slavcodev/coverage-monitor-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
coverage_path: "logs/clover.xml"
threshold_alert: 75
threshold_warning: 90
threshold_metric: "lines"
comment: "true"
comment_context: "Coverage Report"
comment_mode: "replace"
comment_footer: "true"

0 comments on commit 70c7b67

Please sign in to comment.