From e9d672d5d56f2902e69c4267ba672707b19b4376 Mon Sep 17 00:00:00 2001 From: Sagar Rajput Date: Tue, 16 Apr 2024 04:30:27 +0530 Subject: [PATCH] chore: test with code change --- .github/workflows/jest-coverage.yml | 42 +++++------------------------ 1 file changed, 7 insertions(+), 35 deletions(-) diff --git a/.github/workflows/jest-coverage.yml b/.github/workflows/jest-coverage.yml index 153b997266c..7474ee02dae 100644 --- a/.github/workflows/jest-coverage.yml +++ b/.github/workflows/jest-coverage.yml @@ -1,37 +1,3 @@ -# name: Jest Coverage Check - -# on: -# pull_request: -# branches: -# - develop -# - main -# - release/v* - -# jobs: -# jest_coverage: -# runs-on: ubuntu-latest - -# steps: -# - name: Checkout code -# uses: actions/checkout@v4 - -# - name: Install dependencies -# run: cd frontend && yarn install - -# - name: npm test-run-changed -# run: cd frontend && npm run test-changedsince - -# - name: Upload Coverage Results -# uses: actions/upload-artifact@v2 -# with: -# name: coverage -# path: ./frontend/coverage - -# - name: Display Coverage Summary -# run: | -# echo "Coverage Summary:" -# cat coverage/lcov-report/index.html | grep -oP '(?<=).*(?=%)' | tail -n 1 - name: Jest Coverage Check on: @@ -53,13 +19,19 @@ jobs: - run: | git checkout -b develop origin/develop git checkout - + git switch develop - name: Install dependencies run: cd frontend && yarn install env: CI: true - - name: npm run test:changedsince + - name: Run coverage on changes run: cd frontend && npm run test:changedsince env: CI: true + + - name: Run coverage on onlyChanges + run: cd frontend && npm run test:onlychanged + env: + CI: true