-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (39 loc) · 1.45 KB
/
pia_ios_client_library.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 \
-skip-testing:PIALibraryTests/VPNTests \
test | xcpretty
exit ${PIPESTATUS[0]}