forked from milespetrov/status-checks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
85 lines (68 loc) · 2.35 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: 'Run status checks!'
description: 'This action will run eslint, prettier, and TS checks'
author: 'Miles Petrov <[email protected]>'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'git-commit'
color: 'orange'
inputs:
gh-token:
description: >
Provide your GITHUB_TOKEN for api calls.
required: true
compare:
description: >
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.
required: false
default: true
ts-errors:
description: >
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.
required: false
default: 0
ts-command:
description: >
The command to run typescript checking.
Default is `npm run typecheck`.
required: false
default: 'npm run typecheck'
lint-errors:
description: >
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.
required: false
default: 0
lint-command:
description: >
The command to run ESLint checking.
Default is `npm run lintcheck`.
required: false
default: 'npm run lintcheck'
lint-warnings:
description: >
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.
required: false
default: 0
format-command:
description: >
The command to run Prettier checking.
Default is `npm run formatcheck`.
required: false
default: 'npm run formatcheck'
outputs:
ts-errors:
description: 'The number of typescript type errors.'
lint-errors:
description: 'The number of eslint errors.'
lint-warnings:
description: 'The number of eslint warnings.'
format-status:
description: 'Whether the code is formatted or not.'