summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-03-22 14:32:38 +0100
committerAndrej Mihajlov <and@mullvad.net>2021-03-22 16:40:42 +0100
commitad60740edb77281e2df09f9b5a9575c389beba01 (patch)
treed8b67ddaec0fcae398b507edbcd3539775f7de46 /.github
parentf2df34307fdff859f5be44aa6abeeb9ab5f05bd0 (diff)
downloadmullvadvpn-ad60740edb77281e2df09f9b5a9575c389beba01.tar.xz
mullvadvpn-ad60740edb77281e2df09f9b5a9575c389beba01.zip
Add github workflow for iOS tests
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ios.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
new file mode 100644
index 0000000000..97a4383456
--- /dev/null
+++ b/.github/workflows/ios.yml
@@ -0,0 +1,30 @@
+name: iOS app CI
+on:
+ push:
+ paths:
+ - .github/workflows/ios.yml
+ - ios/**
+ # Build if requested manually from the Actions tab
+ workflow_dispatch:
+jobs:
+ test:
+ name: Unit tests
+ runs-on: macos-10.15
+ strategy:
+ matrix:
+ destination: ['platform=iOS Simulator,OS=12.4,name=iPhone 8']
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
+ - name: Prepare iOS 12 simulator
+ run: |
+ sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
+ sudo ln -s /Applications/Xcode_10.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 12.4.simruntime
+
+ - name: Build and test
+ run: |
+ xcodebuild clean test -project MullvadVPN.xcodeproj -scheme MullvadVPNTests -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
+ working-directory: ios
+ env:
+ destination: ${{ matrix.destination }}