Skip to content

Make Doctor an optional filter #379

Make Doctor an optional filter

Make Doctor an optional filter #379

Workflow file for this run

name: Run Unit Tests
on:
pull_request:
paths:
- "Sources/**"
- "Tests/**"
- "Package.swift"
- ".github/workflows/unit-tests.yml"
- ".swiftpm/xcode/xcshareddata/xcschemes/**"
push:
branches:
- master
schedule:
- cron: "0 0 1 * *"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
runs-on: "macos-${{ matrix.macos-version || 'latest' }}"
strategy:
fail-fast: false
matrix:
include:
- platform: iOS
- platform: iOS
xcode-version: "latest"
- platform: iOS
os-version: ~16.4.0
macos-version: "13"
xcode-version: "14.3.1"
- platform: watchOS
- platform: watchOS
os-version: ~9.4.0
macos-version: "13"
xcode-version: "14.3.1"
- platform: tvOS
- platform: tvOS
os-version: ~16.4.0
macos-version: "13"
xcode-version: "14.3.1"
- platform: visionOS
- platform: macOS
- platform: macOS
macos-version: "13"
- platform: mac-catalyst
- platform: mac-catalyst
macos-version: "13"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Use Latest Stable Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode-version || 'latest-stable' }}
- name: Run Unit Tests
uses: bamx23/xcodebuild@os-version
timeout-minutes: 15
with:
workspace: ".swiftpm/xcode/package.xcworkspace"
scheme: "KSCrash-Package"
platform: ${{ matrix.platform }}
os-version: ${{ matrix.os-version }}