-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 1011 Bytes
/
coverage.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
name: Code Coverage
# 当提交不需要打版本的commit时,只需要不bump version,则后续fastlane action不会触发
on:
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build:
name: Start Coverage Test
runs-on: macos-latest
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Install Dependency
run: |
bundle update
pod install
- name: Run tests
uses: sersoft-gmbh/xcodebuild-action@v1
with:
workspace: ArcBlockSDK.xcworkspace
sdk: iphonesimulator
destination: "platform=iOS Simulator,name=iPhone 8"
configuration: Debug
scheme: ArcBlockSDK
action: test
enable-code-coverage: true
- name: Generate Coverage Report
run: |
fastlane code_coverage
- name: Comment PR
uses: NejcZdovc/comment-pr@v1
with:
file: cov_reports/report.md