equisoft-actions/Run mocha through yarn and upload report
Run a yarn task expecting mocha 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/mocha/junit.xml` with `build/mocha/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 mocha errors, in which case a `build/mocha/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 | . |
Outputs
no outputs