equisoft-actions/Run eslint through yarn and upload report
Run a yarn task expecting eslint reports to be produced. The exported reports will follow naming conventions detailed by our ADRs (https://confluence.equisoft.com/display/HRMI/ADR). A report named `build/eslint/report.sarif` is 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 eslint errors, in which case a `build/eslint/report.sarif` 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 archived report. It must follow the convention detailed by our ADRs. | yes | eslint.sarif |
| report-retention-days | Duration in days to preserve reports. Defaults to 5. | yes | 5 |
| task-name | The task name. Defaults to "eslint:ci". | yes | eslint:ci |
| working-directory | Relative path under $GITHUB_WORKSPACE where the project is located. | no | . |
Outputs
no outputs