-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
64 lines (60 loc) · 1.99 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
#
# JBZoo Toolbox - CI-Report-Converter.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @see https://github.com/JBZoo/CI-Report-Converter
#
name: 'Any Report to GitHub Annotations'
description: 'The tool converts different error reports to GitHub Actions (Annotations)'
author: 'Denis Smetannikov <admin@jbzoo.com>'
branding:
icon: 'check-square'
color: 'blue'
inputs:
input-file:
description: 'File path with the original report format. If not set or empty, then the STDIN is used.'
required: true
input-format:
description: 'Source format. Available options: checkstyle, junit, phpmd-json, phpmnd, pmd-cpd, psalm-json'
default: checkstyle
required: true
non-zero-code:
description: 'Will exit with the code=1, if any violations are found.'
default: 'no'
output-file:
description: 'File path with the result report format. If not set or empty, then the STDOUT is used.'
output-format:
description: 'Target format. Available options: gitlab-json, github-cli, junit, plain, tc-inspections, tc-tests'
default: github-cli
required: true
root-path:
description: If option is set, all absolute file paths will be converted to relative once.
default: "."
suite-name:
description: 'Set custom name of root group/suite (if it''s possible).'
required: true
runs:
using: 'docker'
image: 'docker://jbzoo/ci-report-converter'
args:
- convert
- '--input-format'
- ${{ inputs.input-format }}
- '--input-file'
- ${{ inputs.input-file }}
- '--output-format'
- ${{ inputs.output-format }}
- '--output-file'
- ${{ inputs.output-file }}
- '--root-path'
- ${{ inputs.root-path }}
- '--suite-name'
- ${{ inputs.suite-name }}
- '--non-zero-code'
- ${{ inputs.non-zero-code }}
- '-vvv'