forked from andoshin11/typescript-error-reporter-action
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from computerjazz/dm-add-error-threshold
Add error threshold input parameter
- Loading branch information
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ jobs: | |
|
||
## Passing `project` parameter | ||
|
||
If your working with a monorepo or your `tsconfig.json` is not in the root repo, | ||
If you're working with a monorepo or your `tsconfig.json` is not in the root repo, | ||
or you use different config file, you can provide a `project` parmeter with a | ||
path to the repo itself: | ||
|
||
|
@@ -62,3 +62,13 @@ path to the repo itself: | |
with: | ||
project: packages/subpackage/tsconfig.json | ||
``` | ||
## Passing `error_fail_threshold` parameter | ||
|
||
If you're incrementally adopting typescript in a project, you may not want to fail the entire workflow on a single typescript error. `error_fail_threshold` allows you to pass the maximum number of errors at which the step passes. Defaults to 0: | ||
|
||
```yaml | ||
- name: Typecheck | ||
uses: gozala/[email protected] | ||
with: | ||
error_fail_threshold: 100 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters