Skip to content
Merged
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
43 changes: 43 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Unit Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
test-ios:
name: iOS unit tests
runs-on: macos-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Log test environment
run: |
xcodebuild -version
xcrun --sdk iphonesimulator --show-sdk-version
xcrun simctl list runtimes

- name: Run package tests
run: |
xcodebuild test \
-scheme SnapshotPreviews-Package \
-destination 'platform=iOS Simulator,name=iPhone 17 Pro Max' \
Comment thread
jamieQ marked this conversation as resolved.
Resolved
-resultBundlePath UnitTests.xcresult \
CODE_SIGNING_ALLOWED=NO

- name: Upload test results
if: always()
uses: actions/upload-artifact@v7
with:
name: ios-unit-test-results
path: UnitTests.xcresult
if-no-files-found: ignore
retention-days: 7
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Loading