Skip to content

Commit

Permalink
chore: test with code change
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarRajput-7 committed Apr 15, 2024
1 parent b788d24 commit e9d672d
Showing 1 changed file with 7 additions and 35 deletions.
42 changes: 7 additions & 35 deletions .github/workflows/jest-coverage.yml
Original file line number Diff line number Diff line change
@@ -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 '(?<=<span class="strong">).*(?=%</span>)' | tail -n 1

name: Jest Coverage Check

on:
Expand All @@ -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

0 comments on commit e9d672d

Please sign in to comment.