-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
75 lines (73 loc) · 2.29 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
name: 'Robot Framework Generic Action'
description: 'Run Automate test with Robot Framework on Github Action'
branding:
color: 'green'
inputs:
image:
description: 'custom imagename for execute robot framework'
required: true
default: 'ppodgorsek/robot-framework'
image_version:
description: 'custom tag verion image for execute robot framework'
required: true
default: 'latest'
tests_dir:
description: 'Directory where Robot tests are located in the repository'
required: true
default: 'robot_tests'
reports_dir:
description: 'Where will the report from test be saved'
required: true
default: 'reports'
allowed_shared_memory:
description: 'Shared memory that Docker container is allowed to use'
required: true
default: '1g'
browser:
description: 'Browser to use'
required: true
default: 'chrome'
robot_threads:
description: 'Execute tests in parallel'
required: true
default: 1
pabot_options:
description: 'Extra settings for parallel execution. https://github.com/mkorpela/pabot#command-line-options'
required: true
default: ''
robot_options:
description: 'Extra options for robot command'
required: true
default: ''
screen_color_depth:
description: 'Color depth of the virtual screen'
required: true
default: 24
screen_height:
description: 'Height of the virtual screen'
required: true
default: 1080
screen_width:
description: 'Width of the virtual screen'
required: true
default: 1920
runs:
using: 'composite'
steps:
- shell: bash
run: chmod 777 ${{ github.action_path }}/execute.sh
- shell: bash
run: ${{ github.action_path }}/execute.sh
env:
IMAGE: ${{ inputs.image }}
IMAGE_VERSION: ${{ inputs.image_version }}
TESTS_DIR: ${{ inputs.tests_dir }}
REPORTS_DIR: ${{ inputs.reports_dir }}
ALLOWED_SHARED_MEMORY: ${{ inputs.allowed_shared_memory }}
BROWSER: ${{ inputs.browser }}
ROBOT_THREADS: ${{ inputs.robot_threads }}
PABOT_OPTIONS: ${{ inputs.pabot_options }}
ROBOT_OPTIONS: ${{ inputs.robot_options }}
SCREEN_COLOR_DEPTH: ${{ inputs.screen_color_depth }}
SCREEN_HEIGHT: ${{ inputs.screen_height }}
SCREEN_WIDTH: ${{ inputs.screen_width }}