Skip to content

Commit

Permalink
PIA-1443: Split PR CI workflows by platform
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-laura-sempere committed Mar 6, 2024
1 parent b9ea648 commit 5cdcd91
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 8 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ios_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: ios_build_and_test
on:
pull_request:
workflow_dispatch:
concurrency:
group: "${{ github.run_id }}"
cancel-in-progress: true
jobs:
build:
runs-on: macos-14
env:
TEST_RUNNER_PIA_TEST_USER: ${{ secrets.PIA_ACCOUNT_USERNAME}}
TEST_RUNNER_PIA_TEST_PASSWORD: ${{ secrets.PIA_ACCOUNT_PASSWORD }}
TEST_RUNNER_PIA_TEST_DEDICATEDIP: ${{ secrets.PIA_TEST_DEDICATEDIP }}

steps:
- name: Setup Git credentials
run: |
git config --global url."https://${{ secrets.ORG_GITHUB_USERNAME }}:${{ secrets.ORG_GITHUB_TOKEN }}@github.com/".insteadOf "[email protected]:"
- uses: actions/checkout@v3

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.2

- name: Install Fastlane
run: gem install fastlane

- name: Run iOS unit tests
run: bundle exec fastlane tests

- name: Run iOS e2e tests
run: bundle exec fastlane ios_e2e_tests
timeout-minutes: 45


Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: build_and_test
name: tvos_build_and_test
on:
pull_request:
workflow_dispatch:
concurrency:
group: "${{ github.ref }}"
group: "${{ github.run_id }}"
cancel-in-progress: true
jobs:
build:
Expand All @@ -30,16 +30,10 @@ jobs:

- name: Run tvOS unit tests
run: bundle exec fastlane tvOStests

- name: Run iOS unit tests
run: bundle exec fastlane tests

- name: Run tvOS e2e tests
run: bundle exec fastlane tvos_e2e_tests
timeout-minutes: 45

- name: Run iOS e2e tests
run: bundle exec fastlane ios_e2e_tests
timeout-minutes: 45


0 comments on commit 5cdcd91

Please sign in to comment.