-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
42 lines (40 loc) · 1.63 KB
/
action.yaml
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
# Perform requirements tracing against specification documents and source code using OpenFastTrace (https://github.com/itsallcode/openfasttrace)
# Returns the URL of the created HTML report as an output
# [impl->req~run-oft-trace-command~1]
name: "Run OpenFastTrace"
description: |
Runs OpenFastTrace with the `trace` command on files in the local workspace.
inputs:
file-patterns:
description: |
A whitespace separated list of (Bash standard) glob patterns which specify the files and directories to include in the OFT trace run.
If not specified, the local workspace directory is used.
default: "."
required: false
report-filename:
description: |
The name of the file that OpenFastTrace should write the analysis results to.
required: true
report-format:
description: The format of the report that OpenFastTrace should produce.
default: "plain"
required: false
fail-on-error:
description: |
By default, the action will never fail but indicate the result of running the trace command in the "oft-exit-code" output variable.
Setting this parameter to "true" will let the Action return the exit code produced by running OpenFastTrace.
default: "false"
required: false
outputs:
oft-exit-code:
description: |
The exit code indicating the outcome of running OpenFastTrace (0: success, > 0: failure).
The report is created in any case, as long as OpenFastTrace could be run at all.
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.fail-on-error }}
- ${{ inputs.report-filename }}
- ${{ inputs.report-format }}
- ${{ inputs.file-patterns }}