Skip to content

Fix typo in test suite #97

Fix typo in test suite

Fix typo in test suite #97

Workflow file for this run

name: Unit Tests
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
macOS:
name: Test macOS, All Xcodes and Swifts
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.4.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.4.1, Swift 5.6.1 Test"
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.3.1, Swift 5.6 Test"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: xcodebuild -scheme TMDBSwift -destination "platform=macOS" clean test
iOS:
name: "Test iOS"
runs-on: macOS-12
env:
DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- destination: "OS=15.5,name=iPhone 13 Pro"
name: "iOS 15.5 Test"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: xcodebuild -scheme TMDBSwift -destination "${{ matrix.destination }}" clean test
tvOS:
name: Test tvOS
runs-on: macOS-12
env:
DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- destination: "OS=15.4,name=Apple TV"
name: "tvOS 15.4 Test"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: xcodebuild -scheme TMDBSwift -destination "${{ matrix.destination }}" clean test
watchOS:
name: Test watchOS
runs-on: macOS-12
env:
DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- destination: "OS=8.5,name=Apple Watch Series 7 - 45mm"
name: "watchOS 8.5 Test"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name}}
run: xcodebuild -scheme TMDBSwift -destination "${{ matrix.destination }}" clean test
SPM:
name: Test with SPM
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.4.1.app"
runsOn: macOS-12
name: "macOS 12, SPM 5.6.1 Test"
action: swift test -c debug
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, SPM 5.6 Test"
action: swift test -c debug
steps:
- uses: actions/checkout@v3
- name: Test SPM
run: ${{ matrix.action }}