-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (37 loc) · 1.24 KB
/
build-and-test.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
name: iOS Build and Test
on:
pull_request:
branches:
- main
jobs:
buildAndTest:
name: Build and Test the app
runs-on: macos-14
steps:
- name: Trust fingerprint for packages
run: defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
# - name: Select correct xcode
# run: sudo xcode-select -s '/Applications/Xcode_14.3.1.app'
- name: Create dummy Secrets.json file
run: echo '{ }' >> /Users/runner/work/app/app/SwiftIslandApp/Resources/Secrets.json
- name: "Caching of SPM"
uses: actions/cache@v3
with:
path: ~/Library/Developer/Xcode/DerivedData/SwiftIslandApp-*/
key: spm-cache
- name: Build and test
run: |
xcodebuild \
clean \
test \
-project SwiftIslandApp.xcodeproj \
-scheme SwiftIsland \
-configuration "Debug" \
-showBuildTimingSummary \
-destination 'platform=iOS Simulator,name=iPhone 15' \
-clonedSourcePackagesDirPath ~/clonedSourcePackagesDirPath \
"COMPILER_INDEX_STORE_ENABLE=NO"