-
Notifications
You must be signed in to change notification settings - Fork 437
62 lines (52 loc) · 1.81 KB
/
main.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
danger:
runs-on: macos-14
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.0.6
- uses: MeilCli/danger-action@v5
with:
plugins_file: Gemfile
install_path: vendor/bundle
danger_file: Dangerfile
danger_id: danger-pr
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
runs-on: macos-14
strategy:
matrix:
platform:
- platform=iOS Simulator,name=iPhone 15 Pro Max
- platform=iOS Simulator,name=iPhone 15 Pro
- platform=iOS Simulator,name=iPhone 15
- platform=iOS Simulator,name=iPhone 15 Plus
- platform=iOS Simulator,name=iPhone 14 Pro Max
- platform=iOS Simulator,name=iPhone 14 Pro
- platform=iOS Simulator,name=iPhone 14
- platform=iOS Simulator,name=iPhone 14 Plus
- platform=iOS Simulator,name=iPhone SE (3rd generation)
- platform=iOS Simulator,name=iPad (10th generation)
- platform=tvOS Simulator,name=Apple TV
- platform=tvOS Simulator,name=Apple TV 4K (3rd generation)
- platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)
- platform=visionOS Simulator,name=Apple Vision Pro
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.0.6
- name: xcodebuild
run: set -o pipefail && xcodebuild -scheme DeviceKit -destination "${{ matrix.platform }}" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test