From 848ccbf5b429742b6eedfcdd579d338eb87e0223 Mon Sep 17 00:00:00 2001 From: Clement Date: Sat, 4 May 2024 11:27:59 +0200 Subject: [PATCH] feat test testU backend --- .github/workflows/run_back_test.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) 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