Skip to content

Commit 989eeb1

Browse files
committed
Update CI workflow to run all tests including integration tests
Integration tests now use committed xcresult fixtures instead of generating them in CI, so remove the xcresult generation steps.
1 parent 1c0f29e commit 989eeb1

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
11
name: Tests
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
39

410
jobs:
511
test:
612
runs-on: macos-26
713
steps:
814
- uses: actions/checkout@v4
915

10-
- name: Set up Xcode 26
11-
run: sudo xcode-select -s /Applications/Xcode.app
16+
- name: Check Swift version
17+
run: swift --version
1218

13-
- name: Run Unit Tests
14-
run: swift test
15-
16-
- name: Generate Test xcresult
17-
run: |
18-
cd TestFixtures/SampleProject
19-
xcodebuild test \
20-
-scheme SampleProject \
21-
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
22-
-resultBundlePath ../../tmp/integration-test.xcresult \
23-
|| true # Allow test failures
19+
- name: Build
20+
run: swift build
2421

25-
- name: Run Integration Tests
26-
run: swift test --filter IntegrationTests
27-
env:
28-
XCRESULT_PATH: tmp/integration-test.xcresult
22+
- name: Run Tests
23+
run: swift test

0 commit comments

Comments
 (0)