-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (64 loc) · 2.32 KB
/
linux_manual.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
name: Linux Klaatu Tests
on:
workflow_dispatch:
inputs:
branch:
description: 'Experiment Branch'
default: "['control']"
required: true
type: string
slug:
description: 'Experiment Slug'
default: 'an-awesome-experiment'
required: true
type: string
firefox-version:
description: 'The Firefox Version(s) you want to test'
default: "['latest-beta', 'latest', '123.0']"
required: false
type: string
extra-arguments:
description: 'Additional testing arguments'
default: ''
required: false
type: string
env:
MOZ_HEADLESS: 1
jobs:
klaatu-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
firefox: ${{ fromJSON(inputs.firefox-version) }}
branch: ${{ fromJSON(inputs.branch) }}
name: Smoke tests on linux for slug ${{ inputs.slug }} on firefox v${{ matrix.firefox }} branch ${{ matrix.branch }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup firefox
id: setup-firefox
uses: browser-actions/setup-firefox@v1
with:
firefox-version: ${{ matrix.firefox }}
- run: |
echo Installed firefox versions: ${{ steps.setup-firefox.outputs.firefox-version }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Setup tests
shell: bash
run: ./setup_script.sh
- name: Create SSL Certificate Files
run: |
ls -la
pwd
openssl req -x509 -newkey rsa:2048 -keyout /home/runner/work/klaatu/klaatu/search_server/server.key -out /home/runner/work/klaatu/klaatu/search_server/server.cert -days 365 -nodes -subj "/CN=localhost"
- name: Run Tests
run: tox -e bdd-tests -- --experiment-branch ${{ matrix.branch }} --experiment-slug ${{ inputs.slug }} --private-browsing-enabled --firefox-path="/opt/hostedtoolcache/firefox/${{ matrix.firefox }}/x64/firefox" ${{ inputs.extra-arguments }}
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: ${{ inputs.slug }} HTML Test Report on firefox v${{ matrix.firefox }} branch ${{ matrix.branch }}
path: /home/runner/work/klaatu/klaatu/tests/report.html