This repository was archived by the owner on May 4, 2023. It is now read-only.
forked from georgismitev/github-action
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaction.yml
More file actions
57 lines (57 loc) · 2.08 KB
/
Copy pathaction.yml
File metadata and controls
57 lines (57 loc) · 2.08 KB
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
name: 'Codiga GitHub action'
description: 'Ensure your code quality meet given standards'
inputs:
repo_token:
description: 'Token to checkout the repository.'
required: true
codiga_api_token:
description: 'API Token to access Codiga. Set to none if you use access and secret keys'
required: true
default: ''
min_quality_grade:
description: 'Minimum grade. Valid options are EXCELLENT, GOOD, NEUTRAL, WARNING, CRITICAL. Leave blank to ignore.'
required: true
default: ''
min_quality_score:
description: 'Minimum quality score from 0 (worst) to 100 (best)'
required: true
default: '0'
max_defects_rate:
description: 'Maximum defect rate per line of code (e.g. 0.01 for 1 defect per 100 lines of code). Leave 0 to ignore.'
required: true
default: '0'
max_complex_functions_rate:
description: 'Maximum number of complex functions rate (e.g. number of complex functions / number of functions). Leave 0 to ignore.'
required: true
default: '0'
max_long_functions_rate:
description: 'Maximum number of long functions rate (e.g. number of long functions / number of functions). Leave 0 to ignore.'
required: true
default: '0'
project_name:
description: 'Project on codiga. Will use the preferences of this analysis. Leave blank and no preferences are used'
required: true
default: ''
max_timeout_sec:
description: 'Timeout before giving up (in case analysis takes too long). Default is 10 minutes'
required: true
default: '600'
force_ref:
description: 'Force the GitHub action to analyze a given ref. Leave to none if you want to analyze branch being pushed (default)'
required: true
default: 'none'
branding:
icon: 'search'
color: 'blue'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.min_quality_grade }}
- ${{ inputs.min_quality_score }}
- ${{ inputs.max_defects_rate }}
- ${{ inputs.max_complex_functions_rate }}
- ${{ inputs.max_long_functions_rate }}
- ${{ inputs.project_name }}
- ${{ inputs.max_timeout_sec }}
- ${{ inputs.force_ref }}