forked from joonvena/robotframework-docker-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
71 lines (69 loc) · 2.26 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
name: 'Robot Framework'
description: 'Run Robot Framework tests'
inputs:
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
robot_tests_dir:
description: 'Directory where Robot tests are located in the repository'
required: true
default: 'tests'
robot_reports_dir:
description: 'Where will the report from test be saved'
required: true
default: 'reports'
robot_runner_image:
description: 'The docker image which will be used to execute the tests'
required: true
default: 'ppodgorsek/robot-framework:latest'
robot_resource_dir:
description: 'Directory where Robot resources are located in the repository'
required: false
default: 'resources'
runs:
using: 'composite'
steps:
- shell: bash
run: ${{ github.action_path }}/test.sh
env:
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 }}
ROBOT_TESTS_DIR: ${{ inputs.robot_tests_dir }}
ROBOT_REPORTS_DIR: ${{ inputs.robot_reports_dir }}
ROBOT_RESOURCE_DIR: ${{ inputs.robot_resource_dir }}
ROBOT_RUNNER_IMAGE: ${{ inputs.robot_runner_image }}