-
-
Notifications
You must be signed in to change notification settings - Fork 16
63 lines (58 loc) · 2.05 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
54
55
56
57
58
59
60
61
62
63
name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CI_XCODE: '/Applications/Xcode_14.2.app/Contents/Developer'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
xcode-test-ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Use multiple cores
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
- name: Build
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -testPlan ParseCareKit -scheme ParseCareKit -destination platform\=iOS\ Simulator,name\=iPhone\ 14\ Pro\ Max -derivedDataPath DerivedData clean test | xcpretty
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
- name: Prepare codecov
uses: sersoft-gmbh/swift-coverage-action@v3
id: coverage-files
with:
target-name-filter: '^ParseCareKit$'
format: lcov
search-paths: ./DerivedData
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
env_vars: IOS
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
xcode-build-watchos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Use multiple cores
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
- name: Build
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme ParseCareKit-watchOS -destination platform\=watchOS\ Simulator,name\=Apple\ Watch\ Series\ 6\ \(44mm\) | xcpretty
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
docs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Use multiple cores
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
- name: Generate Docs
run: set -o pipefail && env NSUnbufferedIO=YES Scripts/generate-documentation
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}