Comments a PR with the coverage (jest)
Required The github token to comment in the PR.
Optional The command used to generate the coverage. Default: npx jest --coverage
Optional Add parameter to show the coverage only for the changed files. Default: true
Optional The command used to generate the coverage. Default: ''
Optional Delete previous comments before adding a new one. Default: true
Optional If already exists a coverage report the action uses it and doesn't run tests again. Default: false
uses: raulanatol/jest-coverage-comment-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/main.yml
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Hello world action step
id: hello
uses: raulanatol/jest-coverage-comment-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
jest-command: 'npm run jest-ci'
working-directory: 'packages/my-package'
To close a release you only need to execute the makefile with release_{major|minor|patch}
Example:
make release_minor