-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.19 KB
/
run-robot-test.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
name: Run Robot Test
on:
workflow_dispatch:
inputs:
run-id:
description: "workflow run identifier"
required: false
url:
description: "Which URL to check"
required: false
default: "https://duckduckgo.com/"
text:
description: "Which text to check on the URL"
required: false
default: "DuckDuckGo"
env:
RUN_ID: ${{ github.event.inputs.run-id }}
URL: ${{ github.event.inputs.url }}
TEXT: ${{ github.event.inputs.text }}
jobs:
printInputs:
runs-on: ubuntu-latest
steps:
- run: |
echo "This test run with ID: ${{ env.RUN_ID }} will check if the text ${{ env.TEXT }} is present on ${{ env.URL }}"
robot_test:
runs-on: ubuntu-latest
name: ${{github.event.inputs.run-id}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Robot Framework
uses: joonvena/[email protected]
with:
robot_options: "-v URL:${{ env.URL }} -v TEXT:${{ env.TEXT }}"
- name: Upload test results
uses: actions/upload-artifact@v1
if: always()
with:
name: reports
path: ${{ github.workspace }}/reports