2023-06-05 06:47:42 +00:00
|
|
|
name: Jest Coverage Diff
|
2023-05-08 15:55:18 +00:00
|
|
|
|
2023-05-11 13:55:03 +00:00
|
|
|
on: pull_request
|
2023-05-08 15:55:18 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-06-05 06:47:42 +00:00
|
|
|
coverage-check:
|
2023-05-16 11:15:15 +00:00
|
|
|
if: github.actor != 'dependabot[bot]'
|
2023-06-05 06:47:42 +00:00
|
|
|
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'
|
2023-06-05 06:47:42 +00:00
|
|
|
cache: yarn
|
2023-05-11 09:45:19 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
2023-05-11 13:55:03 +00:00
|
|
|
- name: Test Coverage
|
|
|
|
id: testCoverage
|
2023-05-16 11:15:15 +00:00
|
|
|
uses: anuraag016/Jest-Coverage-Diff@V1.4
|
2023-05-11 13:55:03 +00:00
|
|
|
with:
|
|
|
|
fullCoverageDiff: false
|
2023-05-12 07:55:51 +00:00
|
|
|
runCommand: "yarn jest --coverage --collectCoverage=true --coverageDirectory='./' --coverageReporters='json-summary' --forceExit --detectOpenHandles"
|
2023-06-05 06:47:42 +00:00
|
|
|
delta: 0.1
|