Skip to content

chore: added jest coverage setup #41

chore: added jest coverage setup

chore: added jest coverage setup #41

Workflow file for this run

# 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:
pull_request:
branches:
- develop
- main
- release/v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: |
git fetch --no-tags --depth=1 origin develop
git checkout -b develop
git checkout ${{ github.event.pull_request.head.sha }}
- name: Install dependencies
run: cd frontend && yarn install
env:
CI: true
- name: npm run test:changedsince
run: cd frontend && npm run test:changedsince
env:
CI: true
- name: Run Jest
run: cd frontend && npm run jest
- name: npm run test:changedsince
run: cd frontend && npm run test:changedsince
env:
CI: true