-
-
Notifications
You must be signed in to change notification settings - Fork 221
40 lines (36 loc) · 1.29 KB
/
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
38
39
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
mac:
runs-on: macos-13-arm64
strategy:
matrix:
xcode: [14.3.1, 15.1]
fail-fast: false
name: Xcode ${{ matrix.xcode }}
env:
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app"
steps:
- uses: actions/checkout@v2
- name: xcode build and test
run: |
set -o pipefail
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release -sdk iphonesimulator -destination "name=iPhone 15" ENABLE_TESTABILITY=YES | xcpretty -c
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c
xcodebuild -scheme Kanna -configuration Release -sdk watchsimulator -destination "name=Apple Watch Series 8 (45mm)"
- name: swiftpm build and test
run: |
swift build
swift test
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: swiftpm build and test
run: |
swift build
swift test