-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial config for ios github actions. * Split workflows and add additional steps.
- Loading branch information
Showing
3 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This is a basic workflow that is manually triggered | ||
name: iOS 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 | ||
user-facing-name: | ||
description: 'The user facing name' | ||
default: "An Awesome Experiment" | ||
required: false | ||
type: string | ||
jobs: | ||
iOS-klaatu-tests: | ||
runs-on: macos-latest | ||
name: iOS Klaatu Tests | ||
steps: | ||
- name: Clone firefox-ios repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: jrbenny35/firefox-ios | ||
ref: "github-actions-update" | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Build and setup app | ||
run: | | ||
cd firefox-ios | ||
brew update | ||
brew install node | ||
pip3 install virtualenv pipenv | ||
sh ./bootstrap.sh | ||
- name: Run Tests | ||
run: | | ||
cd firefox-ios/firefox-ios-tests/Tests/ExperimentIntegrationTests | ||
pipenv install | ||
EXPERIMENT_NAME= ${{ inputs.user-facing-name }} pipenv run pytest --experiment ${{ inputs.slug }} -k test_generic.py | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# This is a basic workflow that is manually triggered | ||
name: Windows 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 | ||
user-facing-name: | ||
description: 'The user facing name' | ||
default: "An Awesome Experiment" | ||
required: false | ||
type: string | ||
env: | ||
MOZ_HEADLESS: 1 | ||
jobs: | ||
klaatu-tests: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
firefox: ['latest-beta', 'latest-nightly', 'latest' ] | ||
name: windows-klaatu-firefox${{ matrix.firefox }} | ||
steps: | ||
- name: Setup firefox | ||
id: setup-firefox | ||
uses: browser-actions/setup-firefox@v1 | ||
with: | ||
firefox-version: ${{ matrix.firefox }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- uses: browser-actions/setup-geckodriver@latest | ||
- name: Install Chocolatey | ||
shell: pwsh | ||
run: Set-ExecutionPolicy Bypass -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | ||
- name: Install Dependencies | ||
shell: pwsh | ||
run: choco install jdk8 selenium | ||
- name: Setup tests | ||
shell: bash | ||
run: ./setup_script.sh | ||
- name: Run Tests | ||
run: tox -e bdd-tests -- --experiment-branch ${{ inputs.branch }} --experiment-slug ${{ inputs.slug }} --private-browsing-enabled | ||
iOS-klaatu-tests: | ||
runs-on: macos-latest | ||
name: iOS Klaatu Tests | ||
steps: | ||
- name: Clone firefox-ios repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: jrbenny35/firefox-ios | ||
ref: "github-actions-update" | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Build and setup app | ||
run: | | ||
cd firefox-ios | ||
brew update | ||
brew install node | ||
pip3 install virtualenv pipenv | ||
sh ./bootstrap.sh | ||
- name: Run Tests | ||
run: | | ||
cd firefox-ios/firefox-ios-tests/Tests/ExperimentIntegrationTests | ||
pipenv install | ||
EXPERIMENT_NAME="iOS Felt Privacy - Simplified Nav and Felt Deletion v2" pipenv run pytest --experiment ${{ inputs.slug }} -k test_generic.py | ||