Skip to content

Commit 1b93d6c

Browse files
Update run_tests.yml
1 parent 698d47d commit 1b93d6c

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

.github/workflows/run_tests.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
name: Tests
66

77
on:
8+
push:
9+
branches:
10+
- main
811
pull_request:
912

1013
jobs:
1114
spm:
12-
name: Build & Test All
15+
name: "Build & Test All - iOS ${{ matrix.sdk }}"
1316

1417
runs-on: macos-15-xlarge
1518

@@ -60,20 +63,12 @@ jobs:
6063
- name: Install Tuist dependencies for Demo
6164
run: tuist install --path Demo
6265

63-
- name: Test ListableTests
64-
run: tuist test --path Demo --os ${{ matrix.sdk }} ListableTests
66+
- name: Test All
67+
run: tuist test --path Demo --os ${{ matrix.sdk }} -resultBundlePath TestResult
6568

66-
- name: Test BlueprintUIListsTests
67-
run: tuist test --path Demo --os ${{ matrix.sdk }} BlueprintUIListsTests
68-
69-
- name: Test Snapshot-Unit-Tests
70-
run: tuist test --path Demo --os ${{ matrix.sdk }} Snapshot-Unit-Tests
71-
72-
- name: Build & Test Snapshot Package (iOS Simulator)
73-
run: |
74-
cd "Internal/Snapshot"
75-
xcodebuild \
76-
-scheme Snapshot \
77-
-destination "platform=${{ env.TUIST_TEST_PLATFORM }} Simulator,OS=${{ matrix.sdk }},name=${{ env.TUIST_TEST_DEVICE }}" \
78-
-enableCodeCoverage YES \
79-
build test
69+
- name: Upload TestResult
70+
uses: actions/upload-artifact@v4
71+
if: ${{ failure() }}
72+
with:
73+
name: TestResult.xcresult
74+
path: TestResult.xcresult

0 commit comments

Comments
 (0)