Skip to content

Commit

Permalink
#815 Show test coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtranq-nashtechglobal committed Aug 7, 2024
1 parent 706b3bb commit 8bfacbc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/webhook-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: webhook service ci

on:
push:
branches: ["main"]
branches: ["#815-Show_test_coverage_report"]
paths:
- "webhook/**"
- ".github/workflows/actions/action.yaml"
Expand Down Expand Up @@ -56,6 +56,25 @@ jobs:
with:
name: OWASP Dependency Check Report
path: ${{github.workspace}}/reports
- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage/**/coverage.cobertura.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
# if: github.event_name == 'pull_request'
if: github.event_name == 'push'
with:
recreate: true
path: code-coverage-results.md
- name: Log in to the Container registry
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/login-action@v3
Expand Down
6 changes: 3 additions & 3 deletions nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ server {
location /payment-paypal/ {
proxy_pass http://payment-paypal;
}
location /webhook/ {
proxy_pass http://webhook;
}
location /webhook/ {
proxy_pass http://webhook;
}
}

server {
Expand Down

0 comments on commit 8bfacbc

Please sign in to comment.