Skip to content

iOS Unit Tests

iOS Unit Tests #11

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: iOS Unit Tests
on: workflow_dispatch
jobs:
swift_tests:
name: Swift Version ${{ matrix.swift }}
strategy:
matrix:
os: [macos-13]
swift: ["5.9", "5.8", "5.7"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: .build
key: ${{ matrix.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ matrix.os }}-spm-
- name: Build
run: swift build
- name: Run tests
run: swift test
ios_tests:
name: iOS Unit Tests
runs-on: macos-13
steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: 5.9
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: .build
key: ${{ matrix.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ matrix.os }}-spm-
- name: Build
run: xcodebuild test -scheme SyntaxSparrow -sdk iphonesimulator17.2 -destination "OS=17.2,name=iPhone 13"
- name: Test
run: xcodebuild test-without-building -scheme SyntaxSparrow -sdk iphonesimulator17.2 -destination "OS=17.2,name=iPhone 13" -enableCodeCoverage YES