-
Notifications
You must be signed in to change notification settings - Fork 118
/
action.yml
45 lines (38 loc) · 1.25 KB
/
action.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
name: Run tests
description: Run library tests for a given platform
inputs:
xcode:
description: The version of Xcode to use
required: true
scheme:
description: The Xcode scheme to use
required: true
platform:
description: The platform to build for
required: true
runs:
using: composite
steps:
- name: Install xcpretty
run: gem install xcpretty
shell: bash
- name: Save Xcode version
run: xcodebuild -version | tee .xcode-version
shell: bash
- id: restore-carthage-cache
name: Restore Carthage cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
with:
path: Carthage
key: carthage-${{ inputs.platform }}-${{ hashFiles('Cartfile.resolved') }}-${{ hashFiles('.xcode-version') }}-v1
- name: Install dependencies
if: steps.restore-carthage-cache.outputs.cache-hit != 'true'
run: carthage bootstrap --platform ${{ inputs.platform }} --use-xcframeworks --no-use-binaries --cache-builds
shell: bash
- name: Run tests
uses: mxcl/xcodebuild@6e60022a0cbe8c89278be2dd1773a2f68e7c5c87
with:
xcode: ${{ inputs.xcode }}
scheme: ${{ inputs.scheme }}
platform: ${{ inputs.platform }}
code-coverage: true