Close #10: Fetch Quota Information #89
Workflow file for this run
This file contains hidden or 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-FileCopyrightText: 2025 Iva Horn | |
| # SPDX-License-Identifier: MIT | |
| name: Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - '**/Documentation.docc/**' | |
| pull_request: | |
| branches: [ main ] | |
| paths-ignore: | |
| - '**/Documentation.docc/**' | |
| workflow_dispatch: | |
| jobs: | |
| test-macos: | |
| name: macOS | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Show Swift version | |
| run: swift --version | |
| - name: Run tests | |
| run: swift test | |
| test-ios: | |
| name: iOS | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: List available simulators | |
| run: xcrun simctl list devices available | |
| - name: Run tests on iOS Simulator | |
| run: | | |
| xcodebuild test \ | |
| -scheme Rainmaker-Package \ | |
| -destination 'platform=iOS Simulator,name=iPhone 16 Pro' \ | |
| -enableCodeCoverage YES | |
| test-tvos: | |
| name: tvOS | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Run tests on tvOS Simulator | |
| run: | | |
| xcodebuild test \ | |
| -scheme Rainmaker-Package \ | |
| -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)' \ | |
| -enableCodeCoverage YES | |
| test-watchos: | |
| name: watchOS | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Run tests on watchOS Simulator | |
| run: | | |
| xcodebuild test \ | |
| -scheme Rainmaker-Package \ | |
| -destination 'platform=watchOS Simulator,name=Apple Watch Series 11 (46mm)' \ | |
| -enableCodeCoverage YES | |
| test-visionos: | |
| name: visionOS | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Run tests on visionOS Simulator | |
| run: | | |
| xcodebuild test \ | |
| -scheme Rainmaker-Package \ | |
| -destination 'platform=visionOS Simulator,OS=26.1,name=Apple Vision Pro' \ | |
| -enableCodeCoverage YES |