forked from kiwicom/orbit-swiftui
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.24 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
40
name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Build
run: set -o pipefail && xcodebuild -scheme Orbit-Package -destination "generic/platform=iOS Simulator" | xcpretty
check-components-have-snapshots:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check components have snapshots
run: Automation/check_components_have_snapshot_tests.sh
check-docc-referenced-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check all types are referenced in DocC
run: swift package check-documentation
test:
needs: [build, check-components-have-snapshots, check-docc-referenced-types]
strategy:
matrix:
device: ["iPhone SE (3rd generation)", "iPad (9th generation)"]
os_version: ["16.0"]
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Test
run: |
id=$(Automation/get_simulator.py "${{ matrix.device }}" "${{ matrix.os_version }}")
set -o pipefail && xcodebuild test -scheme Orbit-Package -destination "platform=iOS Simulator,id=$id,OS=${{ matrix.os_version }}" | xcpretty