-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 1.04 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
name: CI for Xcode Project
on:
# This workflow runs on every push and pull request to the main branch
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: macos-latest # Ensure the workflow runs on a macOS environment
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Build and Test
run: |
# Set the Xcode version (optional, but recommended for consistency)
sudo xcode-select --switch /Applications/Xcode_15.3.app/Contents/Developer
# Download the dependencies
xcodebuild -resolvePackageDependencies -project TypeReader.xcodeproj
# Build the project and run the tests
xcodebuild \
-project TypeReader.xcodeproj \
-scheme TypeReader \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4' \
clean test
# This will fail the job if any test fails
continue-on-error: false