@@ -26,14 +26,29 @@ jobs:
26
26
persist-credentials : false
27
27
28
28
- name : Setup Ruby
29
- uses : ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152 .0
29
+ uses : ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171 .0
30
30
with :
31
31
ruby-version : ' 3.2.1'
32
32
bundler-cache : true
33
33
34
34
- name : Run unit tests
35
35
run : bundle exec fastlane ios tests
36
36
37
+ - name : Generate Coverage Report
38
+ continue-on-error : true
39
+ run : |
40
+ cd Build/Build/ProfileData
41
+ cd $(ls -d */|head -n 1)
42
+ pathCoverage=Build/Build/ProfileData/${PWD##*/}/Coverage.profdata
43
+ cd ${{ github.workspace }}
44
+ xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage Build/Build/Products/Debug-iphonesimulator/AmplifyUtilsNotifications.o > AmplifyUtilsNotifications-Coverage.lcov
45
+
46
+ - name : Upload Report
47
+ uses : codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
48
+ continue-on-error : true
49
+ with :
50
+ flags : AmplifyUtilsNotifications
51
+
37
52
- name : Run integration tests
38
53
run : bundle exec fastlane ios integration_tests
39
54
46
61
persist-credentials : false
47
62
48
63
- name : Setup Ruby
49
- uses : ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152 .0
64
+ uses : ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171 .0
50
65
with :
51
66
ruby-version : ' 3.2.1'
52
67
bundler-cache : true
63
78
persist-credentials : false
64
79
65
80
- name : Setup Ruby
66
- uses : ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152 .0
81
+ uses : ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171 .0
67
82
with :
68
83
ruby-version : ' 3.2.1'
69
84
bundler-cache : true
80
95
persist-credentials : false
81
96
82
97
- name : Setup Ruby
83
- uses : ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152 .0
98
+ uses : ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171 .0
84
99
with :
85
100
ruby-version : ' 3.2.1'
86
101
bundler-cache : true
0 commit comments