-
Notifications
You must be signed in to change notification settings - Fork 31
53 lines (44 loc) · 1.33 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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: macOS-latest
strategy:
matrix:
env:
- sdk: iphonesimulator13.0
destination: platform=iOS Simulator,name=iPhone 11 Pro,OS=13.0
- sdk: macosx10.15
destination: arch=x86_64
- sdk: appletvsimulator13.0
destination: OS=13.0,name=Apple TV
steps:
- uses: actions/checkout@v1
- name: Select Xcode version
run: sudo xcode-select -s /Applications/Xcode_11.app
- name: Generate Xcode Project
run: swift package generate-xcodeproj --enable-code-coverage
- name: Build and Test
run: |
set -o pipefail && xcodebuild clean build test \
-project "$PROJECT" \
-scheme "$SCHEME" \
-sdk "$SDK" \
-destination "$DESTINATION" \
-configuration Debug \
-enableCodeCoverage YES \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
env:
PROJECT: MoyaSugar.xcodeproj
SCHEME: MoyaSugar-Package
SDK: ${{ matrix.env.sdk }}
DESTINATION: ${{ matrix.env.destination }}
- name: Upload Code Coverage
run: |
bash <(curl -s https://codecov.io/bash) \
-J MoyaSugar \
-t f88cd7cb-d7b4-47c5-af37-782cb49048cc