summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2023-08-16 21:07:18 +0200
committerAndrej Mihajlov <and@mullvad.net>2023-08-18 11:56:46 +0200
commit2b2271aad0c50589d0d5859f523e99d9552bb6f2 (patch)
tree8a1967c91ca853fd2e008f506b9e9b9cad5f317c
parent163391e558a896367d128aa0e3c26b8026e55575 (diff)
downloadmullvadvpn-2b2271aad0c50589d0d5859f523e99d9552bb6f2.tar.xz
mullvadvpn-2b2271aad0c50589d0d5859f523e99d9552bb6f2.zip
Run xcodebuild manually, pass output to xcbeautify
- Disable: MullvadVPNScreenshots -- this is the target used by fastlane snapshot. This won't work on CI and needs further discussion - Add PacketTunnelCoreTests to test plan
-rw-r--r--.github/workflows/ios.yml22
-rw-r--r--ios/TestPlans/MullvadVPNCI.xctestplan8
2 files changed, 22 insertions, 8 deletions
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
index c5cf334673..fa4f93680b 100644
--- a/.github/workflows/ios.yml
+++ b/.github/workflows/ios.yml
@@ -74,12 +74,18 @@ jobs:
cp Screenshots.xcconfig.template Screenshots.xcconfig
working-directory: ios/Configurations
+ - name: Install xcbeautify
+ run: |
+ brew update
+ brew install xcbeautify
+
- name: Run tests
- uses: sersoft-gmbh/xcodebuild-action@v2
- with:
- project: ios/MullvadVPN.xcodeproj
- scheme: MullvadVPN
- skip-testing: MullvadVPNScreenshots
- destination: platform=iOS Simulator,OS=16.4,name=iPhone 14
- action: test
- cloned-source-packages-path: ios/${{ env.SOURCE_PACKAGES_PATH }}
+ run: |
+ NSUnbufferedIO=YES set -o pipefail && \
+ xcodebuild -project MullvadVPN.xcodeproj \
+ -scheme MullvadVPN \
+ -testPlan MullvadVPNCI \
+ -destination "platform=iOS Simulator,OS=16.4,name=iPhone 14" \
+ -clonedSourcePackagesDirPath "$SOURCE_PACKAGES_PATH" \
+ test 2>&1 | xcbeautify
+ working-directory: ios/
diff --git a/ios/TestPlans/MullvadVPNCI.xctestplan b/ios/TestPlans/MullvadVPNCI.xctestplan
index c5e374b7ff..9cee7cef4f 100644
--- a/ios/TestPlans/MullvadVPNCI.xctestplan
+++ b/ios/TestPlans/MullvadVPNCI.xctestplan
@@ -18,6 +18,7 @@
},
"testTargets" : [
{
+ "enabled" : false,
"target" : {
"containerPath" : "container:MullvadVPN.xcodeproj",
"identifier" : "58D0C79223F1CE7000FE9BA7",
@@ -55,6 +56,13 @@
"identifier" : "589A455128E094B300565204",
"name" : "OperationsTests"
}
+ },
+ {
+ "target" : {
+ "containerPath" : "container:MullvadVPN.xcodeproj",
+ "identifier" : "58C7A43C2A863F450060C66F",
+ "name" : "PacketTunnelCoreTests"
+ }
}
],
"version" : 1