mirror of
https://github.com/devicekit/DeviceKit.git
synced 2026-05-17 10:20:34 +00:00
92f1800ce9
- Upgrade test runner from macos-14 to macos-15 - Pin Xcode version to 26.2 (was using latest-stable) - Update actions/checkout from v2 to v4 (v2 is deprecated)
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
danger:
|
|
runs-on: macos-latest
|
|
if: github.event_name == 'pull_request'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
bundler-cache: true
|
|
ruby-version: 2.7.8
|
|
|
|
- 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-15
|
|
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- platform=iOS Simulator,name=iPhone 16 Pro Max
|
|
- platform=iOS Simulator,name=iPhone 16 Pro
|
|
- platform=iOS Simulator,name=iPhone 16
|
|
- platform=iOS Simulator,name=iPhone 16 Plus
|
|
- platform=iOS Simulator,name=iPhone SE (3rd generation)
|
|
- platform=tvOS Simulator,name=Apple TV
|
|
- platform=tvOS Simulator,name=Apple TV 4K (3rd generation)
|
|
- platform=watchOS Simulator,name=Apple Watch Series 10 (46mm)
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: maxim-lobanov/setup-xcode@v1
|
|
with:
|
|
xcode-version: '26.2'
|
|
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
bundler-cache: true
|
|
ruby-version: 2.7.8
|
|
|
|
- name: xcodebuild
|
|
run: set -o pipefail && xcodebuild -scheme DeviceKit -destination "${{ matrix.platform }}" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
|