generated from 0xOpenBytes/ios-base
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (37 loc) · 1023 Bytes
/
CI.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
# yamllint disable rule:line-length
---
name: CI
"on":
push:
branches:
- main
pull_request:
branches:
- main
jobs:
CI:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Xcode Setup
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "14.1"
- name: Development dependencies
run: brew bundle
- name: Development scripts build
run: spx -b
- name: Generate project
run: spx xcodeproj
- name: Build
run: >
xcodebuild build -project OpenWeather.xcodeproj -scheme OpenWeather clean
build -sdk iphoneos CODE_SIGNING_ALLOWED=No
- name: Tests
run: >
xcodebuild test -project OpenWeather.xcodeproj -scheme OpenWeather clean
build -sdk iphoneos -destination "platform=iOS
Simulator,OS=16.1,name=iPhone 14 Pro Max" CODE_SIGNING_ALLOWED=No
- name: Screenshots
run: spx screenshots
# yamllint enable rule:line-length