-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
64 lines (62 loc) · 2.05 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: "Scenamatica Scenario Test"
description: "Test your PaperMC Plugin with declared scenario."
author: "TeamKUN., Peyang"
branding:
icon: book-open
color: blue
inputs:
java:
description: "Target Java version."
default: "11"
minecraft:
description: "Target Minecraft version."
default: "1.16.5"
server-dir:
description: "Server directory."
default: "server"
java-arguments:
description: "Extra Java arguments for the server."
plugin:
description: "The path to your plugin jar file."
required: true
scenamatica:
description: "Target Scenamatica version."
required: true
fail-threshold:
description: "The number of failed tests that will cause the action to fail. Negative values will cause the action to always pass."
default: "0"
github-token:
description: "GitHub token for writing pull request comments."
default: "${{ github.token }}"
graphical-summary:
description: "Whether to generate a summary of the test results in the form of a graph."
default: "true"
upload-xml-report:
description: "Whether to upload the test results in the form of an XML report."
default: "true"
report-artifact-name:
description: "The name of the artifact that will be uploaded."
default: "scenamatica-reports"
required: true
outputs:
# Runner outputs
success:
description: "A boolean value indicating whether the runner successfully processed the tests."
runner-error-type:
description: "The error type (like java exception) reported by the runner."
runner-error-message:
description: "The error message reported by the runner."
# Tests outputs (only available when success is true)
tests:
description: "The number of tests that were run."
test-passes:
description: "The number of tests that passed."
test-failures:
description: "The number of tests that failed."
test-skips:
description: "The number of tests that were skipped."
test-cancels:
description: "The number of tests that were cancelled."
runs:
using: node20
main: "src/dist/index.js"