Skip to content

Commit

Permalink
chore: added jest coverage setup - added file directory
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarRajput-7 committed Apr 15, 2024
1 parent 43f53e0 commit 831d2a0
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/jest-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,23 @@ name: Jest Coverage Check
on:
pull_request:
branches:
- develop # or whatever your main branch is called
- develop
- main
- release/v*

jobs:
jest_coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "14"

- name: Install Dependencies
run: npm install
- name: Install dependencies
run: cd frontend && yarn install

- name: Run Jest with Coverage
working-directory: frontend/package.json
run: npm test --coverage
run: cd frontend && npm test --coverage

- name: Upload Coverage Results
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 831d2a0

Please sign in to comment.