Skip to content

Commit 816fbc9

Browse files
authored
Merge pull request #1258 from BranchMetrics/SDK-1790-Codecov-Integration
SDK-1790 codecov integration
2 parents 5bc18f8 + aaeeb52 commit 816fbc9

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.github/workflows/verify.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ jobs:
4141
with:
4242
name: test-results
4343
path: fastlane/test_output
44+
- name: Upload codecov results
45+
uses: codecov/codecov-action@v3
46+
with:
47+
files: ./fastlane/test_output/cobertura.xml

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
33
gem 'cocoapods', '~> 1.9'
44
gem 'fastlane', '~> 2.69'
55
gem 'pattern_patch', '~> 0.5'
6+
gem 'slather'
67

78
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
89
eval_gemfile(plugins_path) if File.exist?(plugins_path)

fastlane/Fastfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ lane :unit_tests do
1515
prepare_pods
1616
# This testplan only runs unit tests for PR verification.
1717
scan scheme: 'Branch-TestBed-CI'
18+
slather(
19+
cobertura_xml: true,
20+
output_directory: "./fastlane/test_output",
21+
proj: "./Branch-TestBed/Branch-TestBed.xcodeproj",
22+
workspace: "./Branch-TestBed/Branch-TestBed.xcworkspace",
23+
scheme: "Branch-TestBed-CI"
24+
)
1825
end
1926

2027
lane :integration_tests do

fastlane/Scanfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
workspace 'Branch-TestBed/Branch-TestBed.xcworkspace'
22
device 'iPhone 12'
3-
output_types 'junit'
3+
output_types 'junit,html'
4+
code_coverage true
5+
clean true
6+
output_directory 'fastlane/test_output/'

0 commit comments

Comments
 (0)