Commit 768a96d
feat(ci): extend test-ios.yml to cover React Native iOS samples (#163)
* feat(ci): extend test-ios.yml to cover React Native iOS samples
Previously test-ios.yml only built native iOS samples (samples/ios/*).
RN iOS sub-apps (samples/react-native/*/ios) had no CI coverage — the
gap that justified the dependabot manual-review exception for RN bumps.
find-projects now discovers both:
- native iOS: project.yml at samples/ios/<flow>/
- RN iOS: Podfile at samples/react-native/<flow>/ios/
Per-entry steps branch on project type:
- native iOS: existing flow (xcconfig + SPM + `xcodebuild test`)
- RN iOS: setup-node + yarn install (walk up to RN root) + pod install
+ `xcodebuild build` against the generated xcworkspace
`build` (not `test`) for RN — RN samples don't ship XCTest bundles; their
tests run via Jest, exercised by test-js.yml. The build alone validates
pod install, native module autolinking, and the iOS compile path.
The watch_root walk-up to package.json (same pattern test-android.yml
uses for RN Android) ensures JS-side changes correctly trigger the iOS
build for RN samples.
Once green, the dependabot manual-review exception for RN can be
dropped in a follow-up PR.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci: cache SwiftPM and CocoaPods source archives in iOS workflow
`xcodebuild -resolvePackageDependencies` (native iOS) and `pod install`
(RN iOS) both pay a non-trivial cold-fetch cost on every matrix entry.
Cache the global source caches keyed on each project's lockfile / config:
- Native iOS: ~/Library/Caches/org.swift.swiftpm and DerivedData
SourcePackages, keyed on project.yml content.
- RN iOS: ~/Library/Caches/CocoaPods (just the source archives, not the
per-project Pods/ dir which `pod install` regenerates deterministically),
keyed on Podfile.lock content.
Saves ~30s per native iOS entry and ~90s per RN iOS entry on warm cache.
Also bumps actions/cache to @v5 to match the rest of the repo.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(samples/rn): regenerate login-pkce Podfile.lock for react-native 0.85.3
The login-pkce sample's package.json was bumped to react-native@0.85.3
but Podfile.lock still pinned 0.85.2 — drift that the new RN iOS CI
coverage (test-ios.yml) caught on the first run.
Regenerated via `yarn install && cd ios && pod install`. Also includes
incidental quote-stripping in token-refresh's project.pbxproj
(PRODUCT_BUNDLE_IDENTIFIER) that Xcode produced as a side effect.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci: fail-fast on iOS matrix + clean login-pkce Podfile.lock
1. fail-fast: true on the iOS test matrix. macOS minutes are ~10× Ubuntu's,
so cancelling in-flight entries on the first failure saves real money.
Other test workflows keep fail-fast: false (Linux runner cost is small).
2. login-pkce Podfile.lock fully regenerated after nuking Pods/. The earlier
regeneration left Pods/Local Podspecs/React-Core-prebuilt.podspec.json
stale at 0.85.2 because CocoaPods didn't invalidate that one cached
spec, so the lockfile inherited 0.85.2 for React-Core-prebuilt while
every other React pod was 0.85.3 — the drift that broke CI. Fresh
install produces a uniformly 0.85.3 lock. pbxproj is incidental Xcode
normalization.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f100770 commit 768a96d
4 files changed
Lines changed: 460 additions & 341 deletions
File tree
- .github/workflows
- samples/react-native
- login-pkce/ios
- Quickstart.xcodeproj
- token-refresh/ios/Quickstart.xcodeproj
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 6 | + | |
| 7 | + | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
| |||
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | | - | |
29 | | - | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
| |||
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
63 | 73 | | |
64 | 74 | | |
65 | 75 | | |
66 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
67 | 79 | | |
68 | 80 | | |
69 | 81 | | |
70 | 82 | | |
71 | 83 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
76 | 96 | | |
77 | 97 | | |
78 | 98 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
83 | 112 | | |
84 | 113 | | |
85 | 114 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
91 | 156 | | |
92 | 157 | | |
93 | 158 | | |
| |||
103 | 168 | | |
104 | 169 | | |
105 | 170 | | |
106 | | - | |
107 | 171 | | |
108 | 172 | | |
109 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
110 | 179 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 180 | | |
119 | 181 | | |
120 | 182 | | |
| |||
124 | 186 | | |
125 | 187 | | |
126 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
127 | 202 | | |
128 | 203 | | |
129 | 204 | | |
| |||
0 commit comments