-
Notifications
You must be signed in to change notification settings - Fork 29
42 lines (36 loc) · 1.03 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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: macOS-latest
env:
WORKSPACE: HLSCachingReverseProxyServer.xcworkspace
SCHEME: HLSCachingReverseProxyServer-Package
SDK: iphonesimulator
DESTINATION: platform=iOS Simulator,name=iPhone 11 Pro,OS=latest
steps:
- uses: actions/checkout@v1
- name: Generate Xcode Project
run: make project
- name: Build and Test
run: |
set -o pipefail && xcodebuild clean build test \
-workspace "$WORKSPACE" \
-scheme "$SCHEME" \
-sdk "$SDK" \
-destination "$DESTINATION" \
-configuration Debug \
-enableCodeCoverage YES \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
- name: Upload Code Coverage
run: |
bash <(curl -s https://codecov.io/bash) \
-X xcodeplist \
-J HLSCachingReverseProxyServer \
-t "$CODECOV_TOKEN"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}