-
Notifications
You must be signed in to change notification settings - Fork 16
65 lines (55 loc) · 1.58 KB
/
build.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
workflow_dispatch:
env:
RUST_TARGET_PATH: pact-reference
jobs:
test_ios:
name: "🤖 Test iOS"
runs-on: ${{ matrix.host }}
strategy:
fail-fast: true
matrix:
host: [macos-13, macos-14]
platform: [ios, macos]
include:
- platform: ios
scheme: "PactSwift-iOS"
destination: "platform=iOS Simulator,name=iPhone 15 Pro"
- platform: macos
scheme: "PactSwift-macOS"
destination: "arch=x86_64"
- host: macos-13
xcode: 14.3.1
- host: macos-14
xcode: 15.3
env:
SCHEME: "PactSwift-iOS"
DESTINATION: ${{ matrix.destination }}
concurrency:
group: test_${{ matrix.host }}_${{ matrix.xcode }}_iOS_${{ github.ref }}
cancel-in-progress: true
steps:
- name: "🧑💻 Checkout repository"
uses: actions/checkout@v3
- name: "🏭 Use Xcode ${{ matrix.xcode }}"
run: sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app
- name: "🧪 Run tests (xcodebuild)"
run: |
set -o pipefail && \
xcodebuild -resolvePackageDependencies && \
xcodebuild test \
-project PactSwift.xcodeproj \
-scheme "$SCHEME"\
-destination "$DESTINATION" \
| xcbeautify
# - name: "⚗️ Run tests (swift)"
# run: |
# swift build
# swift test -c release