Jest Reporter for GitHub Actions
A custom Jest reporter to create annotations when run via GitHub Actions.
Usage
All you have to do to get annotations in your GitHub Actions runs is to add the reporter
jest.config.js
:
module.exports = {
reporters: [
"default",
"jest-github-actions-reporter"
],
testLocationInResults: true
};
alternatively you can only add it during your CI build:
package.json
{
...
"scripts": {
"citest": "CI=true jest --reporters=default --reporters=jest-github-actions-reporter"
}
}
nothing else is required, no token sharing, no REST API calls etc.
How does this work?
GitHub Actions supports a number of commands that allow you to provide rich experiences without custom REST API calls etc. See the docs for more information.