-
Notifications
You must be signed in to change notification settings - Fork 29
31 lines (28 loc) · 861 Bytes
/
iOS.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
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: build-and-test
runs-on: macos-14
env:
scheme: ${{ 'Demo' }}
destination: ${{ 'platform=iOS Simulator,OS=17.4,name=iPhone 15 Pro' }}
steps:
- uses: actions/checkout@v4
- name: Select Xcode 15.3
run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: Install SwiftLint
run: brew install swiftlint
- name: Lint
run: |
swiftlint lint
- name: Build
run: |
xcodebuild build-for-testing -scheme "$scheme" -workspace FinniversKit.xcworkspace -destination "$destination"
- name: Test
run: |
xcodebuild test-without-building -scheme "$scheme" -workspace FinniversKit.xcworkspace -destination "$destination"