diff --git a/.github/workflows/run_back_test.yml b/.github/workflows/run_back_test.yml index 84c4212..d677a8f 100644 --- a/.github/workflows/run_back_test.yml +++ b/.github/workflows/run_back_test.yml @@ -1,11 +1,17 @@ -name: Jest test unit -on: push +name: 'coverage' +on: + pull_request: + branches: + - master jobs: - build: + coverage: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install modules - run: npm ci - - name: Run tests - run: npm run test \ No newline at end of file + - uses: actions/checkout@v3 + - uses: ArtiomTr/jest-coverage-report-action@v2 + with: + working-directory: Express/barAndCafe + 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