diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml new file mode 100644 index 0000000..df18fa8 --- /dev/null +++ b/.github/workflows/code-coverage.yml @@ -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" +