Skip to content

Commit ab8e401

Browse files
committed
WIP
1 parent 1f5ca98 commit ab8e401

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/tests.yml

+29
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,32 @@ jobs:
7474
.build/debug/TPPDFPackageTests.xctest/Contents/MacOS/TPPDFPackageTests \
7575
--instr-profile .build/debug/codecov/default.profdata \
7676
--format="lcov" > coverage.lcov
77+
78+
carthage-integration:
79+
name: Test Carthage Integration
80+
runs-on: macos-14
81+
timeout-minutes: 30
82+
defaults:
83+
run:
84+
working-directory: Example iOS-Carthage
85+
steps:
86+
- name: Checkout the repository
87+
uses: actions/checkout@v4
88+
89+
- name: Patch Cartfile to pull request branch
90+
if: github.event_name == 'pull_request'
91+
run: |
92+
ESCAPED_REF_NAME=$(echo "${{ github.ref }}" | sed 's/[\/&]/\\&/g')
93+
sed -i.bak "s/main/$ESCAPED_REF_NAME/g" Cartfile
94+
95+
- name: Carthage Update
96+
run: carthage update
97+
98+
- name: Build for iOS
99+
run: |
100+
set -o pipefail && \
101+
env NSUnbufferedIO=YES \
102+
xcodebuild \
103+
-project Example_iOS-Carthage.xcodeproj \
104+
CODE_SIGNING_ALLOWED="NO" \
105+
build 2>&1 | tee test.log | xcbeautify

0 commit comments

Comments
 (0)