-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.34 KB
/
run-selenium.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
name: Run Selenium
on:
workflow_dispatch:
inputs:
base_url:
description: 'Base Url'
required: true
default: 'https://staging.openstax.org'
browser:
description: 'Browser eg. Chrome, Firefox, MicrosoftEdge, Safari'
default: 'Chrome'
marker:
description: 'Marker (optional, ignored when testrail run id is set)'
default: 'smoke_test'
tr_run_id:
description: 'Testrail run ID (optional)'
jobs:
selenium:
runs-on: ubuntu-latest
container: python:3.10
steps:
- uses: actions/checkout@v2
- name: selenium
env:
BASE_URL: ${{ github.event.inputs.base_url }}
BROWSER: ${{ github.event.inputs.browser }}
MARKER: ${{ github.event.inputs.marker }}
TR_RUN_ID: ${{ github.event.inputs.tr_run_id }}
TR_PROJECT_ID: ${{ secrets.testrail_project_id }}
TR_INSTANCE: ${{ secrets.testrail_instance }}
TR_USERNAME: ${{ secrets.testrail_username }}
TR_PASSWORD: ${{ secrets.testrail_password }}
SAUCELABS_USERNAME: ${{ secrets.saucelabs_username }}
SAUCELABS_API_KEY: ${{ secrets.saucelabs_api_key }}
SECURE_STORE_PASSWORD: ${{ secrets.secure_store_password }}
run: |
if [ -z "$TR_RUN_ID"]; then
make sauce
else
make test-rail-sauce
fi