Skip to content

Commit

Permalink
chore: added jest run and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarRajput-7 committed Apr 15, 2024
1 parent db018ea commit 485af84
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/jest-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Jest Coverage

on:
pull_request:
branches:
- develop
- main
- release/v*

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get base branch name
id: base_branch
run: echo "::set-output name=branch::${{ github.base_ref }}"

- run: |
git checkout -b ${{ steps.base_branch.outputs.branch }} origin/${{ steps.base_branch.outputs.branch }}
git checkout -
- name: Install dependencies
run: cd frontend && yarn install

- name: Jest
run: cd frontend && npm run i18n:generate-hash && npm run test

0 comments on commit 485af84

Please sign in to comment.