Skip to content

Commit

Permalink
set minimum coverage in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Neumann <artur@jankaritech.com>
  • Loading branch information
individual-it committed Feb 3, 2022
1 parent 6dca736 commit f5caece
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,15 @@ jobs:
lcov-file: ./coverage/php/lcov.info
delete-old-comments: true
title: "PHP Code Coverage"

- name: JS coverage check
uses: VeryGoodOpenSource/very_good_coverage@v1.2.0
with:
min_coverage: '80'
path: './coverage/jest/lcov.info'

- name: PHP coverage check
uses: VeryGoodOpenSource/very_good_coverage@v1.2.0
with:
min_coverage: '80'
path: './coverage/php/lcov.info'
5 changes: 0 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ module.exports = {
preset: '@vue/cli-plugin-unit-jest/presets/no-babel',
collectCoverage: true,
collectCoverageFrom: ['./src/**'],
coverageThreshold: {
global: {
lines: 20,
},
},
coverageDirectory: '<rootDir>/coverage/jest/',
coverageReporters: ['lcov', 'html', 'text']

Expand Down

0 comments on commit f5caece

Please sign in to comment.