{"repo":"ArtiomTr/jest-coverage-report-action","free":true,"listed":false,"github":"https://github.com/ArtiomTr/jest-coverage-report-action","clone":"git clone https://github.com/ArtiomTr/jest-coverage-report-action.git","description":"Track your code coverage in every pull request.","language":"TypeScript","stars":545,"topics":["coverage-reporters","threshold","jest","actions","action","github-action","github-actions","github-actions-ci","annotations"],"license":"MIT","category":"workflow-automation","readme_excerpt":"jest coverage report 🧪 A GitHub action that reports about your code coverage in every pull request. This action uses Jest to extract code coverage, and comments it on pull request. Inspired by Size-limit action. Features: - Reporting code coverage on each pull request. 📃 - Rejecting pull request, if coverage is under threshold. ❌ - Comparing coverage with base branch. 🔍 - Showing spoiler in the comment for all new covered files . 🆕 - Showing spoiler in the comment for all files, in which coverage was reduced . 🔻 - Failed tests & uncovered line annotations 📢 Usage 1. Install and configure Jest. 2. Create new action inside .github/workflows : Minimal configuration 3. Pay attention to the action parameters. You can specify custom threshold or test script 4. That's it! Forks with no write permission If you're seeing this error in your action's console: It means that action is running with low privileges. By default, pull request event doesn't have any write permissions, when PR is coming from fork. To fix that, change trigger action to pull request target : Warning This brings worse DX - you can test action only when it is merged into your main branch. Any changes to the workflow file will be taken only after merging them to the main branch Custom token By default, this action takes github.token variable to publish reports on your PR. You can overwrite this property by specifying: Specify threshold This action automatically suports jest's coverageThreshold property. Just ad","default_branch":null,"files":null,"tree":[],"storefront":"/r/ArtiomTr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ArtiomTr/jest-coverage-report-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}