-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.65 KB
/
unit-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Unit Test
on:
pull_request:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
unit-test:
name: "[${{ matrix.os }}] Unit Test"
environment: Unit Test # TODO(5d): remove this line after repo is marked as public
strategy:
fail-fast: false
matrix:
include:
- scheme: AWSAppSyncApolloExtensions
os: iOS
sdk: iphonesimulator
destination: platform=iOS Simulator,name=iPhone 15,OS=latest
- scheme: AWSAppSyncApolloExtensions
os: macOS
sdk: macosx
destination: platform=OS X,arch=x86_64
- scheme: AWSAppSyncApolloExtensions
os: watchOS
sdk: watchsimulator
destination: platform=watchOS Simulator,name=Apple Watch Series 9 (45mm),OS=latest
- scheme: AWSAppSyncApolloExtensions
os: tvOS
sdk: appletvsimulator
destination: platform=tvOS Simulator,name=Apple TV 4K (3rd generation),OS=latest
runs-on: macos-14
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
token: ${{ secrets.PAT }} # TODO(5d): remove this line after repo is marked as public
- name: ${{ matrix.os }}
run: |
xcodebuild test \
-scheme ${{ matrix.scheme }} \
-destination "${{ matrix.destination }}" \
-sdk ${{ matrix.sdk }} \
-only-testing:"${{ matrix.scheme }}Tests" | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]}