forked from mixpanel/mixpanel-swift
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (27 loc) · 927 Bytes
/
macOS.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
name: macOS CI
on:
push:
branches: [ master, 3.0.0.beta ]
pull_request:
branches: [ master, 3.0.0.beta ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
working-directory: MixpanelDemo
run:
pod install --repo-update
- name: Swift Lint
run: swiftlint
- name: Run Test
working-directory: MixpanelDemo
run: |
set -o pipefail
xcodebuild -workspace MixpanelDemo.xcworkspace -scheme MixpanelDemoMac -derivedDataPath Build/ -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES -enableCodeCoverage YES clean build test | xcpretty -c;
- name: Code Coverage Report
working-directory: MixpanelDemo/build/Logs/Test
run: |
xcrun xccov view --report --files-for-target Mixpanel.framework *.xcresult
xcrun xccov view --report --only-targets *.xcresult