diff --git a/.github/workflows/run_back_test.yml b/.github/workflows/run_back_test.yml index d677a8f..e7f0722 100644 --- a/.github/workflows/run_back_test.yml +++ b/.github/workflows/run_back_test.yml @@ -1,8 +1,8 @@ -name: 'coverage' +name: Test and coverage on: pull_request: branches: - - master + - '*' jobs: coverage: runs-on: ubuntu-latest @@ -14,4 +14,6 @@ jobs: test-script: npm run test output: comment, report-markdown prnumber: ${{ steps.findPr.outputs.number }} - custom-title: Coverage report for backend \ No newline at end of file + custom-title: Coverage report for backend + github-token: ${{ secrets.PR_TOCKEN}} + annotations: none #disable annotation \ No newline at end of file diff --git a/Express/barAndCafe/jest.config.js b/Express/barAndCafe/jest.config.js index a4f7e45..66a64c8 100644 --- a/Express/barAndCafe/jest.config.js +++ b/Express/barAndCafe/jest.config.js @@ -11,4 +11,9 @@ module.exports = { '!/coverage/', '!**/server.ts', ], -}; \ No newline at end of file + coverageThreshold: { + global: { + lines: 80, + }, + }, +};