-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yaml
101 lines (101 loc) · 3.2 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# ########################################################################
# Copyright 2021 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ########################################################################
# action.yaml
name: 'Workflow engine test runner'
description: 'Trigger argo workflow'
inputs:
splunk: # id of input
description: 'Splunk version to test.'
required: true
test-type:
description: 'Type of tests to execute'
required: true
k8s-manifests-branch:
description: 'Branch of k8s-manifests repository to use'
required: false
default: 'main'
test-args:
description: 'Pytest args for tests'
required: false
job-name:
description: 'Name for the Job'
required: true
labels:
description: 'Labels for argo workflow execution'
required: false
workflow-tmpl-name:
description: 'Name of workflow template to trigger'
required: true
workflow-template-ns:
description: 'Namespace where the workflow template lies'
required: false
default: 'default'
addon-url:
description: 'URL for Add-on spl'
required: true
addon-name:
description: 'Technical add-on name'
required: true
vendor-version:
description: 'Vendor product version'
required: false
default: "default"
sc4s-version:
description: 'version of SC4S, No if not required'
required: true
install-java:
description: 'install java on splunk instance'
default: 'No'
sc4s-docker-registry:
description: 'Docker registry from which sc4s images will be pulled'
required: false
default: ''
os-name:
description: 'OS name on which splunk will be spinned for scripted input'
required: false
default: 'ubuntu'
os-version:
description: 'OS version on which splunk will be spinned for scripted input'
required: false
default: 'latest'
test-browser:
description: 'Browser type for UI tests'
required: false
default: ''
outputs:
workflow-name: # id of output
description: 'Name of workflow triggered'
runs:
using: 'docker'
image: 'docker://ghcr.io/splunk/wfe-test-runner-action/wfe-test-runner-action:v5.0.2'
args:
- ${{ inputs.workflow-tmpl-name }}
- ${{ inputs.workflow-template-ns }}
- ${{ inputs.addon-url }}
- ${{ inputs.job-name }}
- ${{ inputs.splunk }}
- ${{ inputs.test-type }}
- ${{ inputs.k8s-manifests-branch }}
- ${{ inputs.test-args }}
- ${{ inputs.labels }}
- ${{ inputs.addon-name }}
- ${{ inputs.vendor-version }}
- ${{ inputs.sc4s-version }}
- ${{ inputs.install-java }}
- ${{ inputs.sc4s-docker-registry }}
- ${{ inputs.os-name }}
- ${{ inputs.os-version }}
- ${{ inputs.test-browser }}