Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .circleci/config.yml

This file was deleted.

20 changes: 4 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,14 @@ jobs:

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16.1"
xcode-version: "16"

- name: Determine test device
run: |
echo "PLATFORM=iOS Simulator" >> "$GITHUB_ENV"
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
echo "DEVICE=$(xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//")" >> "$GITHUB_ENV"

- name: UI Tests
run: |
set -o pipefail && xcodebuild -project SaladSampleApp.xcodeproj \
-scheme SaladSampleApp \
-testPlan UITests \
-destination "platform=$PLATFORM,name=$DEVICE" \
-resultBundlePath "./ResultBundle.xcresult" \
test | xcpretty
run: fastlane test

- name: Upload test results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: ResultBundle.xcresult
path: ./ResultBundle.xcresult
name: TestResults.xcresult
path: ./TestResults.xcresult
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ platform :ios do
project: "SaladSampleApp.xcodeproj",
testplan: "UITests",
scheme: "SaladSampleApp",
result_bundle: true
result_bundle_path: "TestResults.xcresult"
)
end
end