-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (47 loc) · 1.4 KB
/
tvos-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: tvOS Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
check-changes:
name: Check for Changes
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.filter.outputs.changed }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
changed:
- '.github/workflows/tvos-tests.yml'
- '**/*.swift'
build-tvos-matrix:
name: tvOS Metrix
if: ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }}
needs: check-changes
strategy:
matrix:
xcode: [ "15.4" ]
os: [ macos-14 ]
runs-on: ${{ matrix.os }}
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and Test
run: xcrun xcodebuild test -workspace . -scheme "Vexil" -testPlan "Vexil" -destination "platform=tvOS Simulator,name=Apple TV 4K (3rd generation)"
build-tvos:
runs-on: ubuntu-latest
name: tvOS Tests
if: ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }}
needs: build-tvos-matrix
steps:
- name: Check build matrix status
if: ${{ needs.build-tvos-matrix.result == 'failure' }}
run: exit 1