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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
enable-annotationsAnnotate 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`. yestrue
report-nameThe name of the result report. It must follow the convention detailed by our ADRs.yestypescript-test-results.junit.xml
coverage-report-nameThe name of the coverage report. It must follow the convention detailed by our ADRs.yestypescript-test-coverage.clover.xml
report-retention-daysDuration in days to preserve reports. Defaults to 5.yes5
task-nameThe task name. Defaults to "eslint:ci".yestest:ci
working-directoryRelative path under $GITHUB_WORKSPACE where the project is located.no.

no outputs