-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
52 lines (52 loc) · 3.1 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
name: 'GZoltar'
description: 'Parses the fault localization report produced by GZoltar and delivers a detailed view of the list of suspicious lines of code'
branding:
icon: alert-triangle
color: gray-dark
inputs:
token:
description: >
Personal access token (PAT) used to make actions on the repository such as creating comments on PRs/Commits.
It is recommended to use a service account with the least permissions necessary.
Also when generating a new PAT, select the least scopes necessary.
[Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
default: ${{ github.token }}
build-path:
description: 'Path to the build/target directory containing the [GZoltar](https://github.com/gzoltar/gzoltar) results'
default: '/build'
serialized-coverage-file-path:
description: 'Path to the file containing the serialized file with the coverage collect by [GZoltar](https://github.com/gzoltar/gzoltar). Example: `/build/gzoltar.ser`'
required: false
test-cases-file-path:
description: 'Path to the file containing a list of all test cases generated by [GZoltar](https://github.com/gzoltar/gzoltar). Example: `/build/sfl/txt/tests.csv`'
required: false
spectra-file-path:
description: 'Path to the file containing a list of all lines of code identified by [GZoltar](https://github.com/gzoltar/gzoltar) (one per row) of all classes under test. Example: `/build/sfl/txt/spectra.csv`'
required: false
matrix-file-path:
description: 'Path to the file containing a binary coverage matrix produced by [GZoltar](https://github.com/gzoltar/gzoltar). Example: `/build/sfl/txt/matrix.txt`'
required: false
statistics-file-path:
description: 'Path to the file containing statistics information of the ranking produced by [GZoltar](https://github.com/gzoltar/gzoltar). Example: `/build/sfl/txt/statistics.csv`'
required: false
ranking-files-paths:
description: 'Path to each SBFL ranking algorithms file. Example: `[/build/sfl/txt/ochiai.ranking.csv]`'
required: false
sfl-ranking:
description: 'List of the SBFL ranking algorithms to use separated by `,`. (Keep in mind that each algorithm need to have present a fault localization report file in the `ranking-files-path` directory with his name, i.e. `ochiai.ranking.csv`.)'
default: '[ochiai]'
sfl-threshold:
description: 'Line suspiciousness threshold to trigger an warning and show on results. A threshold is needed for each SBFL ranking algorithms used'
default: '[0.5]'
sfl-ranking-order:
description: 'Ranking algorithm to order table results by suspiciousness, on descending order.'
default: 'ochiai'
diff-comments-code-block:
description: 'Comments displayed on files with suspicious lines in diff are grouped by code block, instead of in each line'
default: true
upload-artifacts:
description: 'Indicates whether to upload the [GZoltar](https://github.com/gzoltar/gzoltar) results as an artifact'
default: false
runs:
using: 'node16'
main: 'dist/index.js'