-
Notifications
You must be signed in to change notification settings - Fork 32
43 lines (41 loc) · 1.31 KB
/
ci.yaml
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
40
41
42
43
name: Test and Lint
on:
push:
branches: [main]
pull_request:
branches:
- "*"
jobs:
lint:
name: Lint Code
runs-on: ubuntu-latest
steps:
- name: Repository checkout
uses: actions/checkout@v4
- name: Lint
uses: norio-nomura/[email protected]
with:
args: --strict
test:
name: Test Xcode ${{ matrix.xcode }} - ${{ matrix.xcodebuildCommand }}
runs-on: "macos-15"
strategy:
fail-fast: true
matrix:
xcode:
- ^16
xcodebuildCommand:
- "-sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16'"
- "-sdk macosx -destination 'platform=macOS'"
- "-sdk xrsimulator -destination 'platform=visionOS Simulator,name=Apple Vision Pro'"
- "-sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)'"
- "-sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 10 (46mm)'"
steps:
- name: Repository checkout
uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Build and Test
run: xcodebuild test -scheme TelemetryDeck-Package ${{ matrix.xcodebuildCommand }}