-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathaction.yml
137 lines (129 loc) · 4.37 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: 'Schedule tests on Testing Farm'
description: 'A GitHub action will schedule a user defined tests to the Testing Farm to run tmt tests.'
author: 'RHSCL team'
branding:
icon: circle
color: red
inputs:
api_key:
description: 'A testing farm API key'
required: true
api_url:
description: 'A testing farm server url'
required: false
default: 'https://api.dev.testing-farm.io/v0.1'
tf_scope:
description: 'Defines the scope of Testing Farm. Possible options are public and private'
required: false
default: 'public'
# Tmt Metadata
git_url:
description: 'An url to the GIT repository with TMT plans'
required: false
default: '${{ github.server_url }}/${{ github.repository }}'
git_ref:
description: 'A tmt tests branch, tag or commit specifying the desired git revision which will be used for tests.'
required: false
default: '${{ github.ref }}'
tmt_plan_regex:
required: false
description: 'A tmt plan regex which will be used for selecting plans. By default all plans are selected.'
tmt_plan_filter:
required: false
description: 'A filter used to select tmt plans plan_filter. See https://docs.testing-farm.io/Testing%20Farm/0.1/test-request.html#plan-filter.'
tmt_context:
description: 'A value of tmt.context variable https://tmt.readthedocs.io/en/latest/spec/context.html, variables separated by ;'
required: false
default: ''
tmt_path:
description: 'A path in the repository with tmt metadata'
required: false
default: '.'
# Test Environment
compose:
description: 'A compose to run tests against.'
default: 'Fedora-latest'
required: false
arch:
description: 'Define an architecture for testing environment. Default: x86_64'
required: false
default: 'x86_64'
variables:
description: 'Environment variables for test, separated by ;'
required: false
default: ''
secrets:
description: 'Secret environment variables for test env, separated by ;'
required: false
default: ''
tmt_hardware:
description: 'Define hardware requirements for the testing environment as a JSON string. See https://tmt.readthedocs.io/en/latest/spec/hardware.html'
required: false
# Test Artifacts
copr:
description: 'Name of copr to use for the artifacts'
required: false
default: 'epel-7-x86_64'
copr_artifacts:
description: '"fedora-copr-build" artifacts for testing environment. Separated by ;'
required: false
default: ''
# Miscellaneous
github_token:
description: 'GitHub TOKEN or PAT'
required: false
default: '${{ github.token }}'
create_issue_comment:
description: 'It creates a github issue Comment'
required: false
default: 'false'
pull_request_status_name:
description: 'GitHub pull request status name'
required: false
default: 'Fedora'
update_pull_request_status:
description: 'Action will update pull request status. Default: true'
required: false
default: 'false'
environment_settings:
description: 'Pass specific settings, like post-install-script, to the testing environment.'
required: false
default: '{}'
pipeline_settings:
description: 'Pass specific settings for the testing farm pipeline, e.g. the type for multihost testing.'
required: false
default: '{}'
create_github_summary:
description: 'Create GitHub Job Summary accessible from Workflow run Summary.. Possible options: "true" or "false"'
required: false
default: 'true'
timeout:
description: 'Action is waiting for testing farm to finish or until timeout is reached. Value is in minutes.'
required: false
default: '480'
# GitHub Metadata to provide/override the default values
repo_owner:
description: 'Owner of the repository'
required: false
default: '${{ github.repository_owner }}'
repo_name:
description: 'Name of the repository'
required: false
pr_number:
description: 'Pull request number for showing the results'
required: false
commit_sha:
description: 'Sha of the commit triggering the action'
required: false
outputs:
request_id:
description: 'An ID of a scheduled testing farm request'
request_url:
description: 'An URL of a scheduled testing farm request'
test_log_url:
description: 'An URL of a scheduled test logs'
runs:
using: node20
main: dist/index.js
post-if: cancelled()
post: dist/index.js