|
13 | 13 | DEVELOPER_DIR: /Applications/Xcode_14.2.app |
14 | 14 |
|
15 | 15 | jobs: |
16 | | - test-product: |
| 16 | + test: |
17 | 17 | name: Test |
18 | 18 | runs-on: macos-12 |
19 | 19 | strategy: |
20 | 20 | matrix: |
21 | | - test_platform: |
22 | | - - "iOS Simulator,name=iPhone 13 Pro" |
23 | | - - "macOS" |
24 | | - - "tvOS Simulator,name=Apple TV 4K (at 1080p) (2nd generation)" |
25 | | - - "watchOS Simulator,name=Apple Watch Series 7 (45mm)" |
| 21 | + platform: |
| 22 | + - ios |
| 23 | + - macos |
| 24 | + - tvos |
| 25 | + - watchos |
26 | 26 | steps: |
27 | 27 | - uses: actions/checkout@v2 |
28 | | - - name: Test |
29 | | - run: xcodebuild test -scheme swiftui-atom-properties -destination platform="${{ matrix.test_platform }}" |
30 | | - |
31 | | - test-example-ios: |
32 | | - name: Test |
33 | | - runs-on: macos-12 |
34 | | - strategy: |
35 | | - matrix: |
36 | | - test_platform: |
37 | | - - "iOS Simulator,name=iPhone 13 Pro" |
38 | | - steps: |
39 | | - - uses: actions/checkout@v2 |
40 | | - - name: Test |
41 | | - run: | |
42 | | - cd Examples/Packages/iOS |
43 | | - xcodebuild test -scheme iOSExamples -destination platform="${{ matrix.test_platform }}" |
44 | | -
|
45 | | - test-example-cross-platform: |
46 | | - name: Test |
47 | | - runs-on: macos-12 |
48 | | - strategy: |
49 | | - matrix: |
50 | | - test_platform: |
51 | | - - "iOS Simulator,name=iPhone 13 Pro" |
52 | | - - "macOS" |
53 | | - - "tvOS Simulator,name=Apple TV 4K (at 1080p) (2nd generation)" |
54 | | - steps: |
55 | | - - uses: actions/checkout@v2 |
56 | | - - name: Test |
57 | | - run: | |
58 | | - cd Examples/Packages/CrossPlatform |
59 | | - xcodebuild test -scheme CrossPlatformExamples -destination platform="${{ matrix.test_platform }}" |
| 28 | + - name: Test product |
| 29 | + run: scripts/test.sh product ${{ matrix.platform }} |
| 30 | + - name: Test example iOS |
| 31 | + if: matrix.platform == 'ios' |
| 32 | + run: scripts/test.sh example-ios ${{ matrix.platform }} |
| 33 | + - name: Test example cross platform |
| 34 | + if: matrix.platform == 'ios' || matrix.platform == 'macos' || matrix.platform == 'tvos' |
| 35 | + run: scripts/test.sh example-cross-platform ${{ matrix.platform }} |
60 | 36 |
|
61 | 37 | validation: |
62 | 38 | name: Validation |
63 | 39 | runs-on: macos-12 |
64 | | - env: |
65 | | - DEVELOPER_DIR: /Applications/Xcode_14.2.app |
66 | 40 | steps: |
67 | 41 | - uses: actions/checkout@v2 |
68 | 42 | - name: Show environments |
|
0 commit comments