-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
69 lines (69 loc) · 4.32 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
65
66
67
68
69
name: 'Gatling Enterprise Action'
description: 'Run your load tests on Gatling Enterprise straight from your GitHub Actions CI/CD workflows.'
branding:
icon: 'bar-chart-2'
color: 'purple'
inputs:
gatling_enterprise_url:
description: 'URL of your Gatling Enterprise server (needed only for self-hosted instances).'
required: false
default: 'https://cloud.gatling.io'
gatling_enterprise_api_url:
description: 'Allows configuring a separate URL for the Gatling Enterprise API, this is NOT required for typical use cases.'
required: false
api_token:
description: 'A Gatling Enterprise API token with at least Start permission (we recommend storing it securely using GitHub''s encrypted secrets; see https://docs.github.com/en/actions/security-guides/encrypted-secrets#using-encrypted-secrets-in-a-workflow). Alternatively, you can define your token in an environment variable named GATLING_ENTERPRISE_API_TOKEN.'
required: false
simulation_id:
description: 'The ID of the simulation to run.'
required: true
extra_system_properties:
description: 'Additional Java system properties, will be merged with the simulation''s configured system properties. Must be formatted as a JSON object, e.g. {"MySysProp":"Some value"}.'
required: false
extra_environment_variables:
description: 'Additional environment variables, will be merged with the simulation''s configured environment variables. Must be formatted as a JSON object, e.g. {"MY_ENV_VAR":"Some value"}.'
required: false
override_load_generators:
description: 'Overrides the simulation''s load generators configuration. Must be formatted as a JSON object, e.g. {"4a399023-d443-3a58-864f-3919760df78b":{"size":1,"weight":60},"c800b6d9-163b-3db7-928f-86c1470a9542":{"size":1,"weight":40}} (weights are optional).'
required: false
fail_action_on_run_failure:
description: 'Whether the action should fail if the run ends with a failed status. True by default. If set to false, some of this action''s outputs may be missing.'
required: false
default: 'true'
wait_for_run_end:
description: 'Whether the action should wait for the end of the Gatling Enterprise simulation run before terminating. True by default. If set to false, some of this action''s outputs may be missing.'
required: false
default: 'true'
run_summary_enabled:
description: 'Assuming wait_for_run_end is also true, will regularly log a summary of the ongoing run to the console until it finishes. True by default.'
required: false
default: 'true'
run_summary_initial_refresh_interval:
description: 'Initial interval before displaying a new summary of the ongoing run in the console, in seconds. 5 seconds by default. Should be a multiple of 5 (otherwise it will be rounded up). Only used a limited number of times (set by run_summary_initial_refresh_count) before switching to the interval set by run_summary_permanent_refresh_interval.'
required: false
default: '5'
run_summary_initial_refresh_count:
description: 'Number of times to use run_summary_initial_refresh_interval as the interval before displaying a new summary of the ongoing run in the console. 12 times by default (i.e. 60 seconds with the default run_summary_initial_refresh_interval of 5 seconds). After that, run_summary_permanent_refresh_interval will be used. This allows to avoid spamming the log output once the test run is well underway.'
required: false
default: '12'
run_summary_refresh_interval:
description: 'Interval before displaying a new summary of the ongoing run in the console, in seconds. 60 seconds by default. Should be a multiple of 5 (otherwise it will be rounded up).'
required: false
default: '60'
outputs:
run_id:
description: 'ID of the run started by this action.'
reports_url:
description: 'The URL of the reports page for this run (only when running on Gatling Enterprise Cloud).'
runs_url:
description: 'The URL of the runs page for this simulation (only when running on Gatling Enterprise Cloud).'
runs_status_code:
description: 'The code of the run''s final status.'
runs_status_name:
description: 'The name of the run''s final status.'
run_assertions:
description: 'The results of the run''s assertions, as a JSON array.'
runs:
using: 'node20'
main: 'gh-action/dist/index.js'
post: 'gh-action/dist/index.js'