Skip to content

Commit

Permalink
PIA-000: Update fastlane test options
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-laura-sempere committed Jun 10, 2024
1 parent 4348171 commit f1e31cf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ios_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ name: ios_build_and_test
on:
pull_request:
workflow_dispatch:
push:
branches:
- PIA-000_update_e2e_test_options
concurrency:
group: "${{ github.run_id }}"
cancel-in-progress: true
jobs:
build:
runs-on: macos-14
runs-on: macos-13
env:
TEST_RUNNER_PIA_TEST_USER: ${{ secrets.PIA_ACCOUNT_USERNAME}}
TEST_RUNNER_PIA_TEST_PASSWORD: ${{ secrets.PIA_ACCOUNT_PASSWORD }}
Expand All @@ -20,8 +23,8 @@ jobs:
- uses: actions/checkout@v3

- name: Select XCode version
run: sudo xcode-select -s /Applications/Xcode_15.0.1.app
# - name: Select XCode version
# run: sudo xcode-select -s /Applications/Xcode_15.0.1.app

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/tvos_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: tvos_build_and_test
on:
pull_request:
workflow_dispatch:
push:
branches:
- PIA-000_update_e2e_test_options
concurrency:
group: "${{ github.run_id }}"
cancel-in-progress: true
Expand All @@ -20,8 +23,8 @@ jobs:
- uses: actions/checkout@v3

- name: Select XCode version
run: sudo xcode-select -s /Applications/Xcode_15.0.1.app
# - name: Select XCode version
# run: sudo xcode-select -s /Applications/Xcode_15.0.1.app

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
11 changes: 8 additions & 3 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ platform :ios do
key_content = ENV['APP_STORE_CONNECT_KEY']

lane :tests do
run_tests(scheme: "PIA VPN")
run_tests(scheme: "PIA VPN", devices: ["iPhone 15"],
prelaunch_simulator: true)
end

lane :tvOStests do
Expand All @@ -18,9 +19,12 @@ platform :ios do
run_tests(
scheme: "PIA VPN dev",
testplan: "PIA-VPN-e2e-simulator",
devices: ["iPhone 14"],
devices: ["iPhone 15"],
prelaunch_simulator: true,
test_without_building: true
test_without_building: true,
reset_simulator: true,
open_report: true,
disable_concurrent_testing: true
)
end

Expand All @@ -30,6 +34,7 @@ platform :ios do
testplan: "PIA-VPN_tvOS_E2E_Tests",
test_without_building: true,
prelaunch_simulator: true,
reset_simulator: true,
device: "Apple TV"
)
end
Expand Down

0 comments on commit f1e31cf

Please sign in to comment.