Skip to content

Update swift.yml

Update swift.yml #13

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
xcode-version: ['15', '16.1-beta']
platform: [iOS, macOS, tvOS, watchOS, visionOS]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode-version }}
- name: Test ${{ matrix.platform }}
run: xcodebuild test -scheme ViewInspection -destination 'platform=${{ matrix.platform }}'