PIA-809: Update PIALibrary #13
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_ios_client_library | |
on: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: "${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
macos: | |
name: build and test | |
runs-on: macos-13 | |
timeout-minutes: 30 | |
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: Select XCode version | |
run: sudo xcode-select -s /Applications/Xcode_15.0.app | |
- name: Install dependencies | |
run: | | |
swift package resolve | |
- name: Build | |
run: | | |
set -o pipefail | |
xcodebuild -scheme 'PIALibrary' -configuration Debug -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" build | xcpretty | |
exit ${PIPESTATUS[0]} | |
- name: Test | |
run: | | |
set -o pipefail | |
xcodebuild -scheme 'PIALibrary' -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" \ | |
-skip-testing:PIALibraryTests/EndpointManagerTests \ | |
-skip-testing:PIALibraryTests/AccountTests \ | |
-skip-testing:PIALibraryTests/AccountInfoTests \ | |
-skip-testing:PIALibraryTests/ProductTests \ | |
-skip-testing:PIALibraryTests/DIPTokenKeychainTests \ | |
test | xcpretty | |
exit ${PIPESTATUS[0]} |