PIA-809: Update client app #9
Workflow file for this run
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
name: pia_vpn_ios | |
on: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: "${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: macos-13 | |
env: | |
TEST_RUNNER_PIA_TEST_USER: ${{ secrets.PIA_ACCOUNT_USERNAME}} | |
TEST_RUNNER_PIA_TEST_PASSWORD: ${{ secrets.PIA_ACCOUNT_PASSWORD }} | |
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: Set credentials in fastlane env | |
run: echo "TEST_RUNNER_PIA_TEST_USER=${{ secrets.PIA_ACCOUNT_USERNAME}}"\n"TEST_RUNNER_PIA_TEST_PASSWORD=${{ secrets.PIA_ACCOUNT_PASSWORD }}" > fastlane/.env | |
- name: Check fastlane env | |
run: cat fastlane/.env | |
- name: Select XCode version | |
run: sudo xcode-select -s /Applications/Xcode_15.0.app | |
# - name: Run e2e tests with fastlane | |
# run: bundle exec fastlane e2e_tests | |
# continue-on-error: true | |
- name: Build | |
run: | | |
set -o pipefail | |
xcodebuild -scheme 'PIA VPN' -configuration Debug -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" build | xcpretty | |
exit ${PIPESTATUS[0]} | |
- name: Run E2E Tests | |
run: | | |
set -o pipefail | |
xcodebuild -scheme 'PIA VPN' -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" \ | |
-testPlan PIA-VPN-e2e-simulator \ | |
test-without-building | xcpretty | |
exit ${PIPESTATUS[0]} | |
- name: Run tests | |
run: bundle exec fastlane tests | |