[go: nahoru, domu]

Skip to content

Commit

Permalink
set min converage percentage to 67
Browse files Browse the repository at this point in the history
  • Loading branch information
vic-en committed Oct 22, 2021
1 parent e9ae64c commit 132c0ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,12 @@ jobs:

- name: Run unit test
run: npm run test:unit --prefix ./gateway

- name: Run unit test coverage
if: github.event_name == 'pull_request' && steps.program-changes.outputs.cache-hit != 'true'
shell: bash
run: |
git fetch --all -q
git checkout -b $GITHUB_SHA
npm run test:cov --prefix ./gateway
diff-cover --compare-branch=origin/feat/gateway-v2 --fail-under=67 ./gateway/coverage/clover.xml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ gateway.env
/cover/
/coverage_html_report/
coverage.xml
/gateway/coverage/

# Gateway-V2 repo
# configuration files
Expand Down

0 comments on commit 132c0ae

Please sign in to comment.