-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (66 loc) · 2.52 KB
/
run-enterprise-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
70
71
72
73
name: Run Gatling Enterprise Action
on:
workflow_dispatch:
inputs:
simulation_id:
type: string
required: true
extra_system_properties:
type: string
required: false
extra_environment_variables:
type: string
required: false
override_load_generators:
type: string
required: false
fail_action_on_run_failure:
type: boolean
default: 'true'
wait_for_run_end:
type: boolean
default: 'true'
jobs:
run-gatling-simulation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
# cache is broken until we can enable Corepack directly in setup-node
# instead of having to wait to enable it manually later.
# See https://github.com/actions/setup-node/issues/531.
# cache: 'yarn'
- name: Build
run: |
corepack enable
yarn config set nodeLinker node-modules
yarn plugin import workspace-tools
yarn install --immutable
yarn package
- name: Gatling Enterprise Action
id: enterprise-action
uses: ./
with:
api_token: ${{ secrets.TEST_CLOUD_PROD_GATLING_CORP_START_API_TOKEN }}
simulation_id: ${{ inputs.simulation_id }}
extra_system_properties: ${{ inputs.extra_system_properties }}
extra_environment_variables: ${{ inputs.extra_environment_variables }}
override_load_generators: ${{ inputs.override_load_generators }}
fail_action_on_run_failure: ${{ inputs.fail_action_on_run_failure }}
wait_for_run_end: ${{ inputs.wait_for_run_end }}
- name: Print output
run: |
echo "run_id=${{ steps.enterprise-action.outputs.run_id }}"
echo "reports_url=${{ steps.enterprise-action.outputs.reports_url }}"
echo "runs_url=${{ steps.enterprise-action.outputs.runs_url }}"
echo "run_status_code=${{ steps.enterprise-action.outputs.run_status_code }}"
echo "run_status_name=${{ steps.enterprise-action.outputs.run_status_name }}"
echo "run_assertions=${{ steps.enterprise-action.outputs.run_assertions }}"
echo
echo "Deprecated outputs:"
echo "runs_status_code=${{ steps.enterprise-action.outputs.runs_status_code }}"
echo "runs_status_name=${{ steps.enterprise-action.outputs.runs_status_name }}"