-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.29 KB
/
ci.yml
File metadata and controls
51 lines (42 loc) · 1.29 KB
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
name: PactKit CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test-library:
name: Test PactKitCore
runs-on: macos-15
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Swift PM dependencies
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Select Xcode 16.4
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
- name: Run library tests
run: swift test
build-example-app:
name: Build Example App
needs: build-and-test-library
runs-on: macos-15
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Select Xcode 16.4
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
- name: Build iOS Example App
run: |
xcodebuild build \
-project Examples/PactKit-iOS-Example/PactKit-iOS-Example.xcodeproj \
-scheme PactKit-iOS-Example \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro'