-
Notifications
You must be signed in to change notification settings - Fork 168
40 lines (38 loc) · 1.14 KB
/
ci.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
name: CI
on:
pull_request:
branches: [ master ]
jobs:
run-tests:
runs-on: macos-latest
strategy:
matrix:
os: ['tvOS', 'iOS']
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.2.1'
- uses: actions/cache@v4
id: carthage-cache
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
- name: Build
if: steps.carthage-cache.outputs.cache-hit != 'true'
run: |
sh ./Consumption-Tests/Shared/carthage.sh bootstrap --cache-builds --use-xcframeworks
- uses: futureware-tech/simulator-action@v1
id: simulator
with:
os: ${{ matrix.os }}
- name: "Run ${{ matrix.os }} Tests"
run: |
set -o pipefail && env NSUnbufferedIO=YES xcodebuild \
-project PusherSwift.xcodeproj \
-scheme PusherSwift \
build \
COMPILER_INDEX_STORE_ENABLE=NO \
test \
-destination "id=${{ steps.simulator.outputs.udid }}" \
| xcpretty --color