Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vgrafe/jest-reports
https://github.com/vgrafe/jest-reports
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vgrafe/jest-reports
- Owner: vgrafe
- License: mit
- Created: 2022-06-28T01:24:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T17:13:31.000Z (almost 2 years ago)
- Last Synced: 2024-12-10T01:06:19.524Z (about 1 month ago)
- Language: TypeScript
- Size: 3.86 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# What it does
Posts coverage report in a comment on your PR, or in a commit when pushing to your default branch.
![](docs/screenshot0.jpeg)
## Features
- can be run on both PR and pushes on main
- on a PR, it will compare coverage with base branch
- 2x faster than other actions on the marketplace thanks to aggressive caching
- coming soon:
- sharded tests support
- better hanlding of github's 50 limit on annotations## Usage
```yml
name: jest-reports
on:
push:
branches:
- main
pull_request:jobs:
compare-cov:
runs-on: ubuntu-latest
steps:
- uses: vgrafe/[email protected]
```## Options
```yml
with:
github-token:
description: "A github access token"
default: ${{ github.token }}
scope:
description: "Set the scope of the jest run: all, changed in PR, changed since last successful run on the PR"
default: "all"
options:
- all
- pr-changes
- changes-since-last-success
run-steps:
description: "skip any step by removing the corresponging item from this comma-separated list"
default: "compare-with-base-branch,report-on-github,annotations-changes,annotations-all"
```