equisoft-actions/Run jest through yarn and upload report
Run a yarn task expecting jest reports and coverage data to be produced. The reports will follow naming conventions detailed by our ADRs (https://confluence.equisoft.com/display/HRMI/ADR). Report named `build/jest/junit.xml` with `build/jest/coverage/clover.xml` are expected under all circumstances. Errors will be annotated on pull requests.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| enable-annotations | Annotate files with jest errors, in which case a `build/jest/junit.xml` file is expected. This is the default behavior for projects that branched off webapp-boilerplate. Defaults to `true`. | yes | true |
| report-name | The name of the result report. It must follow the convention detailed by our ADRs. | yes | typescript-test-results.junit.xml |
| coverage-report-name | The name of the coverage report. It must follow the convention detailed by our ADRs. | yes | typescript-test-coverage.clover.xml |
| report-retention-days | Duration in days to preserve reports. Defaults to 5. | yes | 5 |
| task-name | The task name. Defaults to "eslint:ci". | yes | test:ci |
| working-directory | Relative path under $GITHUB_WORKSPACE where the project is located. | no | . |
| max-memory | Max old space size (in megabytes) | no | 4096 |
Outputs
no outputs