mars-v2-frontend/.github/workflows/code-coverage.yaml

27 lines
731 B
YAML
Raw Normal View History

name: Jest Coverage Diff
2023-05-08 15:55:18 +00:00
on: pull_request
2023-05-08 15:55:18 +00:00
jobs:
coverage-check:
if: github.actor != 'dependabot[bot]'
name: Code Coverage Diff Check
2023-05-08 15:55:18 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: yarn
2023-05-11 09:45:19 +00:00
- name: Install dependencies
run: yarn
- name: Test Coverage
id: testCoverage
uses: anuraag016/Jest-Coverage-Diff@V1.4
with:
fullCoverageDiff: false
runCommand: "yarn jest --coverage --collectCoverage=true --coverageDirectory='./' --coverageReporters='json-summary' --forceExit --detectOpenHandles"
delta: 0.1