Repository navigation
๐ :: (#351) - FastlaneยทCocoaPods gem lock๊ณผ ๋ฐฐํฌ ํ๊ฒฝ ์ฌํ์ฑ ํ๋ณด - #395
Conversation
There was a problem hiding this comment.
๋ฆฌ๋ทฐ ๊ฒฐ๊ณผ
๋ณ๊ฒฝ๋ 6๊ฐ ํ์ผ์ ๊ฒํ ํ์ต๋๋ค. ์ธ๋ผ์ธ ๊ด์ฐฐ 1๊ฐ๋ฅผ ๊ฒ์ํ์ต๋๋ค.
| ์ฌ๊ฐ๋ | ๊ฐ์ |
|---|---|
| ์น๋ช ์ | 0 |
| ๋์ | 0 |
| ์ค๊ฐ | 0 |
| ๋ฎ์ | 1 |
์ ํ: ํ์ ์์ 0, ์์ ๊ถ์ฅ 0, ์ ์ 0, ํ์ธ ์ง๋ฌธ 0, ์ข์๋ ์ 1
์ฃผ์ ๊ด์ฐฐ
- ์ข์๋ ์ ยท LOW ๋ฐฐํฌ์ฉ Ruby ์์กด์ฑ์ ์ ๊ธ ์ํ๋ก ๊ฒ์ฆํฉ๋๋ค
๊ฒํ ํ head: c7e1e521ac7e ยท ์ต์ head๋ /review๋ก ๊ฒํ ํ์ธ์.
| outputs: | ||
| result: ${{ steps.fastlane.outputs.result }} | ||
| env: | ||
| BUNDLE_FROZEN: 'true' |
There was a problem hiding this comment.
๐น ์ข์๋ ์ ยท LOW
๋ฐฐํฌ์ฉ Ruby ์์กด์ฑ์ ์ ๊ธ ์ํ๋ก ๊ฒ์ฆํฉ๋๋ค
์ปค๋ฐ๋ Gemfile.lock๋ฅผ ์ถ๊ฐํ ๋ค ๋ฐฐํฌ ์์ ์ BUNDLE_FROZEN์ ์ค์ ํด, Gemfile๊ณผ ์ ๊ธ ํ์ผ์ด ๋ถ์ผ์นํ๋ฉด ์์๋ก ์์กด์ฑ์ ๋ค์ ํด์ํ์ง ์๊ณ ์ฆ์ ์คํจํ๋๋ก ํ์ต๋๋ค. iOS ๋ฐ ์๋ TestFlight ์ํฌํ๋ก์๋ ๊ฐ์ ์ ์ฑ ์ด ์ ์ฉ๋์ด ๋ฐฐํฌ ๊ฒฝ๋ก ๊ฐ ๋์๋ ์ผ๊ด๋ฉ๋๋ค.
์ด์ : ์คํ ์ด ๋ฐฐํฌ๋ ์ฌํ์ฑ๊ณผ ์คํจ์ ์กฐ๊ธฐ ํ์ง๊ฐ ์ค์ํ๋ฏ๋ก, ์ ๊ธ ํ์ผ์ ์๋ ์์ ํ์ง ์๋ ์ค์ ์ด ์ด์ ์์ ์ฑ์ ์ง์ ๊ฐ์ ํฉ๋๋ค.
๐ก ๊ฐ์
Issue #351 ์์ ์ ๋๋ค.
๋ฐฐํฌ ํ๊ฒฝ์์ ์ฌ์ฉํ๋ Ruby gem ์์กด์ฑ์
Gemfile.lock์ผ๋ก ๊ณ ์ ํ๊ณ ,GitHub Actions์ Xcode Cloud๊ฐ ๋์ผํ Bundler ๊ธฐ๋ฐ ํ๊ฒฝ์ ์ฌ์ฉํ๋๋ก ์ ๋ฆฌํ์ต๋๋ค.
๊ฐ์ commit์์๋ ์ค์น ์์ ์ ๋ฐ๋ผ Fastlane/CocoaPods gem ๋ฒ์ ์ด ๋ฌ๋ผ์ง ์ ์๋ ๋ฌธ์ ๋ฅผ ์ค์ด๊ณ ,
CI๊ฐ lock ํ์ผ์ ์๋ฌต์ ์ผ๋ก ๋ณ๊ฒฝํ์ง ๋ชปํ๋๋ก frozen ์ ์ฑ ์ ์ ์ฉํ์ต๋๋ค.
๐ ๊ด๋ จ ์ด์
๐ ์์ ๋ด์ฉ
Gemfile.lock์ถ๊ฐ2.240.11.16.22.6.9GitHub Actions ๋ฐฐํฌ workflow์ lock ๋๋ฝ ๊ฒ์ฌ ๋ฐ frozen Bundler ์ค์น ์ ์ฉ
release-android.ymlrelease-ios.ymltestflight-ios-manual.ymlXcode Cloud post-clone ์คํฌ๋ฆฝํธ ์์
bundle exec pod install์ฌ์ฉroot
ci_scripts/ci_post_clone.shfallback ๊ฒฝ๋ก๋ ๋์ผํ๊ฒ Bundler ๊ธฐ์ค์ผ๋ก ์ ๋ฆฌ๐ ํ ์คํธ
Windows ํ๊ฒฝ์์ ๋ค์ ๊ฒ์ฆ์ ์งํํ์ต๋๋ค.
git diff --checkํต๊ณผios/Podfile.lock๋ณ๊ฒฝ ์์ ํ์ธํ์ฌ Windows ํ๊ฒฝ์์๋ ์๋ ํญ๋ชฉ์ ์ง์ ๊ฒ์ฆํ์ง ๋ชปํ์ต๋๋ค.
pod installbundle exec fastlane lanesdry_run=true๋ฐฐํฌ workflowPR ์ดํ macOS CI์์ ์ถ๊ฐ ๊ฒ์ฆ์ด ํ์ํฉ๋๋ค.
๐โโ๏ธ ํ์ธ์ฌํญ
ios/Podfile.lock์ ์์ ํ์ง ์์์ต๋๋ค.pubspec.yaml,pubspec.lock์ ๐ง :: FastlaneยทCocoaPods gem lock๊ณผ ๋ฐฐํฌ ํ๊ฒฝ ์ฌํ์ฑ ํ๋ณดย #351 ์์ ์ ํฌํจํ์ง ์์์ต๋๋ค.โ ์ฒดํฌ๋ฆฌ์คํธ