Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
Signed-off-by: usiiasirrush <[email protected]>
  • Loading branch information
UsiDiamond authored Aug 16, 2023
1 parent ff11b59 commit e8fc130
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Run Build and Unit Tests
on:
push:
branches: ["development"]
pull_request:
branches: ["development"]

jobs:
build:
Expand Down Expand Up @@ -48,4 +50,22 @@ jobs:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M-%S')"

- name: Code Coverage Report
uses: irongut/[email protected]
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'
with:
recreate: true
path: code-coverage-results.md

0 comments on commit e8fc130

Please sign in to comment.