-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.1 KB
/
practical_examples.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
name: Test Practical Examples
on:
push:
branches:
- main
pull_request:
branches:
- main
- develop
defaults:
run:
working-directory: Examples/Practical
jobs:
test:
name: "Test BoardApplication"
runs-on: macos-14
defaults:
run:
working-directory: Examples/Practical/BoardApplication
shell: bash
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Cache SwiftPM
uses: actions/cache@v2
with:
path: SourcePackages
key: ${{ runner.os }}-spm-${{ hashFiles('*.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }}
restore-keys: ${{ runner.os }}-spm-
- name: Install xcpretty
run: bundle install
working-directory: ./
- name: Build
run: |
set -o pipefail && \
xcodebuild -scheme BoardApplication \
build -destination "name=iPhone 15" \
-clonedSourcePackagesDirPath SourcePackages \
| bundle exec xcpretty