15
15
runs-on : apps-ci
16
16
timeout-minutes : 120
17
17
steps :
18
-
18
+
19
19
- name : Remove any previous hook 🥸
20
20
run : rm -rf .git/hooks
21
21
@@ -28,63 +28,37 @@ jobs:
28
28
uses : actions/cache@v3
29
29
with :
30
30
path : |
31
- .gems
31
+ .gems
32
32
~/.bundle
33
33
key : ${{ runner.os }}-cache-gems-${{ hashFiles('**/Gemfile.lock') }}
34
34
35
35
- name : Rake ⚙️
36
- run : arch -arm64 rake
37
-
38
- - name : Run iOS tests ⚙️
39
- run : arch -arm64 bundle exec fastlane test_scheme scheme:Mini-iOS configuration:Debug name:iOS
36
+ run : rake
40
37
41
- - name : Upload coverage for iOS to Codecov 📋
42
- uses : codecov/codecov-action@v3.1.1
43
- with :
44
- token : ${{ secrets.CODECOV_TOKEN }}
45
- xcode : true
46
- xcode_archive_path : ./output/iOS/Mini-iOS.xcresult
47
- flags : ios
48
- fail_ci_if_error : true
49
- name : codecov-ios
50
- gcov_ignore : Tests/*
38
+ - name : Run tests ⚙️
39
+ run : rake test
51
40
52
- - name : Run tvOS tests ⚙️
53
- run : arch -arm64 bundle exec fastlane test_scheme scheme:Mini-tvOS configuration:Debug name:tv
41
+ - name : Generate lcov file 📈
42
+ run : |
43
+ xcrun llvm-cov export \
44
+ -format="lcov" \
45
+ --ignore-filename-regex=".build|.test-bundle|Tests/" \
46
+ .build/debug/MiniPackageTests.xctest/Contents/MacOS/MiniPackageTests \
47
+ -instr-profile .build/debug/codecov/default.profdata \
48
+ > report.lcov
54
49
55
- - name : Upload coverage for tvOS to Codecov 📋
50
+ - name : Upload package tests coverage to Codecov 📋
56
51
uses : codecov/codecov-action@v3.1.1
57
52
with :
58
53
token : ${{ secrets.CODECOV_TOKEN }}
59
- xcode : true
60
- xcode_archive_path : ./output/tv/Mini-tvOS.xcresult
61
- flags : tv
54
+ files : report.lcov
55
+ flags : package
62
56
fail_ci_if_error : true
63
- name : codecov-tv
57
+ name : codecov-package
64
58
gcov_ignore : Tests/*
65
59
66
- - name : Run mac tests ⚙️
67
- run : arch -arm64 bundle exec fastlane test_scheme scheme:Mini-macOS configuration:Debug name:mac
68
-
69
- - name : Upload coverage for mac to Codecov 📋
70
- uses : codecov/codecov-action@v3.1.1
71
- with :
72
- token : ${{ secrets.CODECOV_TOKEN }}
73
- xcode : true
74
- xcode_archive_path : ./output/mac/Mini-macOS.xcresult
75
- flags : mac
76
- fail_ci_if_error : true
77
- name : codecov-mac
78
- gcov_ignore : Tests/*
79
-
80
- - name : Danger 🚨
81
- run : bundle exec danger
82
- if : github.event_name == 'pull_request'
83
- env :
84
- DANGER_GITHUB_API_TOKEN : ${{ secrets.THORBOT_GITHUB_API_TOKEN }}
85
-
86
60
- name : Save Output 📦
87
61
uses : actions/upload-artifact@v3
88
62
with :
89
63
name : output
90
- path : ${{ github.workspace }}/output
64
+ path : ${{ github.workspace }}/report.lcov
0 commit comments