-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (29 loc) · 881 Bytes
/
jest-coverage.yml
File metadata and controls
31 lines (29 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Jest Coverage Report with Annotations (CI)
on:
pull_request:
branches:
- master
jobs:
coverage_report:
name: Jest Coverage Report
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Get Threshold
id: threshold
uses: notiz-dev/github-action-json-property@release
with:
path: 'jest.config.json'
prop_path: 'coverageThreshold.global.statements'
- name: Install dependencies
run: yarn
- name: Test and generate coverage report
uses: artiomtr/jest-coverage-report-action@v2.0-rc.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
threshold: ${{steps.threshold.outputs.prop}}
package-manager: yarn
custom-title: Jest Coverage Report