Support visionOS #11
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
# SPDX-License-Identifier: MIT | |
# Copyright 2024, Jamf | |
name: UnitTests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
Test-on-macOS: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run macOS tests (including integration) | |
run: swift test | |
Test-on-all-others: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run iOS tests | |
run: xcodebuild test -scheme Haversack-Package -destination 'platform=iOS Simulator,name=iPhone 14' | |
- name: Run tvOS tests | |
run: xcodebuild test -scheme Haversack-Package -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)' | |
- name: Run watchOS tests | |
run: xcodebuild test -scheme Haversack-Package -destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (41mm)' | |
SwiftLint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: GitHub Action for SwiftLint | |
uses: norio-nomura/action-swiftlint@3.2.1 |