@@ -13,24 +13,21 @@ concurrency:
13
13
jobs :
14
14
ios-unit-tests :
15
15
name : iOS Unit Tests
16
- runs-on : macos-12
16
+ runs-on : macos-14
17
17
timeout-minutes : 30
18
18
steps :
19
19
- # Checkout the repository
20
20
uses : actions/checkout@v4
21
21
22
- - # Install dependencies
23
- run : brew install xcbeautify
24
-
25
- - # Run Tests iOS
22
+ - # Run Tests
26
23
name : Run Tests iOS
27
24
run : |
28
25
set -o pipefail && \
29
26
env NSUnbufferedIO=YES \
30
27
xcodebuild -workspace . \
31
28
-scheme "TPPDF" \
32
29
-sdk iphonesimulator \
33
- -destination "OS=16.2 ,name=iPhone 14 Pro" \
30
+ -destination "OS=17.4 ,name=iPhone 15 Pro" \
34
31
-configuration Debug \
35
32
-enableCodeCoverage YES \
36
33
-derivedDataPath /tmp/DerivedData \
@@ -58,36 +55,15 @@ jobs:
58
55
--instr-profile $PROFDATA_PATH \
59
56
--format="lcov" > integration-tests.coverage.lcov
60
57
61
- - # Codecov Coverage
62
- name : Upload coverage to Codecov
63
-
64
- with :
65
- fail_ci_if_error : true
66
- files : ./unit-tests.coverage.lcov,./integration-tests.coverage.lcov
67
- flags : iOS
68
- xcode_archive_path : test_output.xcresults
69
- path_to_write_report : coverage_report.txt
70
-
71
- - # Upload the generated Codecov report to the GitHub artifacts
72
- name : Upload coverage report
73
- uses : actions/upload-artifact@v4
74
- if : success()
75
- with :
76
- name : coverage_report.txt
77
- path : coverage_report.txt
78
-
79
58
macos-unit-tests :
80
59
name : macOS Unit Tests
81
- runs-on : macos-12
60
+ runs-on : macos-14
82
61
timeout-minutes : 30
83
62
steps :
84
63
- # Checkout the repository
85
64
uses : actions/checkout@v4
86
65
87
- - # Install dependencies
88
- run : brew install xcbeautify
89
-
90
- - # Run tests on macOS with coverage enabled
66
+ - # Run Tests
91
67
name : Run tests
92
68
run : swift test --parallel --enable-code-coverage
93
69
97
73
.build/debug/TPPDFPackageTests.xctest/Contents/MacOS/TPPDFPackageTests \
98
74
--instr-profile .build/debug/codecov/default.profdata \
99
75
--format="lcov" > coverage.lcov
100
-
101
- - # Codecov Coverage
102
- name : Upload coverage to Codecov
103
-
104
- with :
105
- fail_ci_if_error : true
106
- files : ./coverage.lcov
107
- flags : macOS
108
- path_to_write_report : coverage_report.txt
0 commit comments