milespetrov/Run status checks!
This action will run eslint, prettier, and TS checks
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| gh-token | Provide your GITHUB_TOKEN for api calls. | yes | — |
| compare | Causes pull request status checks to be compared against the head branch status checks so only new errors can cause the workflow to fail. Default is true. | no | true |
| ts-errors | This option sets the number of TypeScript errors allowed before failing the code. The default is 0. If the `compare` input is true (default) and this is a pull request negative values can be used. This is useful if you wish to reduce errors over time. | no | 0 |
| ts-command | The command to run typescript checking. Default is `npm run typecheck`. | no | npm run typecheck |
| lint-errors | This option sets the number of ESLint errors allowed before failing the code. The default is 0. If the `compare` input is true (default) and this is a pull request negative values can be used. This is useful if you wish to reduce errors over time. | no | 0 |
| lint-command | The command to run ESLint checking. Default is `npm run lintcheck`. | no | npm run lintcheck |
| lint-warnings | This option sets the number of ESLint warnings allowed before failing the code. The default is 0. If the `compare` input is true (default) and this is a pull request negative values can be used. This is useful if you wish to reduce errors over time. | no | 0 |
| format-command | The command to run Prettier checking. Default is `npm run formatcheck`. | no | npm run formatcheck |
Outputs
| name | description |
|---|---|
| ts-errors | The number of typescript type errors. |
| lint-errors | The number of eslint errors. |
| lint-warnings | The number of eslint warnings. |
| format-status | Whether the code is formatted or not. |