Fix compilation issues for tvOS #175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Testing SketchKit | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
scheme: [ | |
SketchKit | |
] | |
destination: [ | |
'platform=iOS Simulator,name=iPhone 15 Pro,OS=17.0.1' | |
] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Xcode version | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: 15.0.1 | |
- name: Set up Ruby 3.1.2 | |
uses: ruby/[email protected] | |
with: | |
ruby-version: 3.1.2 | |
bundler-cache: true | |
- name: Danger action | |
uses: MeilCli/danger-action@v6 | |
if: github.event_name == 'pull_request' | |
with: | |
plugins_file: 'Gemfile' | |
install_path: 'vendor/bundle' | |
danger_file: 'Dangerfile' | |
danger_id: 'danger-pr' | |
env: | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test ${{ matrix.scheme }} on ${{ matrix.destination }} | |
run: | | |
xcodebuild -scheme ${{ matrix.scheme }} \ | |
-sdk iphonesimulator \ | |
-destination '${{ matrix.destination }}' \ | |
-enableCodeCoverage YES \ | |
test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
verbose: true |