Skip to content

Commit 2f0b4a5

Browse files
authored
Switch to fastlane provided by brew to simplify project (#112)
# Description - Trade-offs: - brew-managed fastlane may lag behind the fastlane gem (because of course the gem is the fastest distribution) - but this is much, much easier to manage and removes warnings and hopefully improves overall CI stability - Update README for Ruby steps and Xcode version - Remove Gemfile because brew handles this - Remove .ruby-version > fastlane can be installed in multiple ways. The preferred method is with Bundler. fastlane can also be installed directly through Homebrew (if on macOS). It is possible to use macOS's system Ruby, but it's not recommended, as it can be hard to manage dependencies and cause conflicts. -- https://docs.fastlane.tools/
1 parent 805a534 commit 2f0b4a5

File tree

12 files changed

+24
-372
lines changed

12 files changed

+24
-372
lines changed

.github/workflows/ios.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ jobs:
3232
- name: Set Xcode 26.0
3333
run: sudo xcode-select -s /Applications/Xcode_26.0.app
3434
- name: Install tools
35-
run: |
36-
brew install rbenv
37-
brew install ruby-build
38-
brew install gh
39-
bundler install
35+
run: brew bundle install
4036
- name: Set up xcconfig secrets (see README.md#quick-start)
4137
env:
4238
BIKE_INDEX_DEVELOPMENT_XCCONFIG: ${{ secrets.BIKE_INDEX_DEVELOPMENT_XCCONFIG }}
@@ -47,13 +43,11 @@ jobs:
4743
BIKE_INDEX_TEST_CREDENTIALS: ${{ secrets.BIKE_INDEX_TEST_CREDENTIALS }}
4844
run: |
4945
echo "$BIKE_INDEX_TEST_CREDENTIALS" >> Test-credentials.xcconfig
50-
- name: Install iOS 26 simulator
51-
run: xcodebuild -downloadPlatform iOS
5246
- name: List available simulators
5347
run: xcodebuild -scheme Debug\ \(development\) -project BikeIndex.xcodeproj -showdestinations
5448
- name: Run tests
5549
id: fastlane-ios-tests
56-
run: bundle exec fastlane ios tests_iphone16
50+
run: fastlane ios tests_iphone16
5751
- uses: actions/upload-artifact@v4
5852
if: always()
5953
with:
@@ -85,11 +79,7 @@ jobs:
8579
- name: Set Xcode 26.0
8680
run: sudo xcode-select -s /Applications/Xcode_26.0.app
8781
- name: Install tools
88-
run: |
89-
brew install rbenv
90-
brew install ruby-build
91-
brew install gh
92-
bundler install
82+
run: brew bundle install
9383
- name: Set up xcconfig secrets (see README.md#quick-start)
9484
env:
9585
BIKE_INDEX_DEVELOPMENT_XCCONFIG: ${{ secrets.BIKE_INDEX_DEVELOPMENT_XCCONFIG }}
@@ -100,13 +90,11 @@ jobs:
10090
BIKE_INDEX_TEST_CREDENTIALS: ${{ secrets.BIKE_INDEX_TEST_CREDENTIALS }}
10191
run: |
10292
echo "$BIKE_INDEX_TEST_CREDENTIALS" >> Test-credentials.xcconfig
103-
- name: Install iOS 26 simulator
104-
run: xcodebuild -downloadPlatform iOS
10593
- name: List available simulators
10694
run: xcodebuild -scheme Debug\ \(development\) -project BikeIndex.xcodeproj -showdestinations
10795
- name: Run tests
10896
id: fastlane-ios-tests
109-
run: bundle exec fastlane ios tests_iphone16plus
97+
run: fastlane ios tests_iphone16plus
11098
- uses: actions/upload-artifact@v4
11199
if: always()
112100
with:
@@ -138,11 +126,7 @@ jobs:
138126
- name: Set Xcode 26.0
139127
run: sudo xcode-select -s /Applications/Xcode_26.0.app
140128
- name: Install tools
141-
run: |
142-
brew install rbenv
143-
brew install ruby-build
144-
brew install gh
145-
bundler install
129+
run: brew bundle install
146130
- name: Set up xcconfig secrets (see README.md#quick-start)
147131
env:
148132
BIKE_INDEX_DEVELOPMENT_XCCONFIG: ${{ secrets.BIKE_INDEX_DEVELOPMENT_XCCONFIG }}
@@ -153,13 +137,11 @@ jobs:
153137
BIKE_INDEX_TEST_CREDENTIALS: ${{ secrets.BIKE_INDEX_TEST_CREDENTIALS }}
154138
run: |
155139
echo "$BIKE_INDEX_TEST_CREDENTIALS" >> Test-credentials.xcconfig
156-
- name: Install iOS 26 simulator
157-
run: xcodebuild -downloadPlatform iOS
158140
- name: List available simulators
159141
run: xcodebuild -scheme Debug\ \(development\) -project BikeIndex.xcodeproj -showdestinations
160142
- name: Run tests
161143
id: fastlane-ios-tests
162-
run: bundle exec fastlane ios tests_ipad
144+
run: fastlane ios tests_ipad
163145
- uses: actions/upload-artifact@v4
164146
if: always()
165147
with:

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

BikeIndex.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
04566C7D2E67475E00E3EC6E /* Scanfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Scanfile; sourceTree = "<group>"; };
5959
04566C7F2E67475E00E3EC6E /* update-icons.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "update-icons.sh"; sourceTree = "<group>"; };
6060
0496C6702CB36BED00B88D1B /* Brewfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; path = Brewfile; sourceTree = "<group>"; };
61-
0496C6712CB36BF100B88D1B /* .ruby-version */ = {isa = PBXFileReference; lastKnownFileType = text; path = ".ruby-version"; sourceTree = "<group>"; };
62-
0496C6722CB36BF600B88D1B /* Gemfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; path = Gemfile; sourceTree = "<group>"; };
6361
04D80BB62D8673F200E29577 /* Test-credentials.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Test-credentials.xcconfig"; sourceTree = "<group>"; };
6462
04D80BB72D8673F200E29577 /* Test-credentials-template.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Test-credentials-template.xcconfig"; sourceTree = "<group>"; };
6563
04F4B8F72B098ADB009442B5 /* BikeIndex.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BikeIndex.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -193,8 +191,6 @@
193191
04CDF1632D3C344800F90515 /* UITests */,
194192
04CDF1502D3C344500F90515 /* UnitTests */,
195193
0496C6702CB36BED00B88D1B /* Brewfile */,
196-
0496C6722CB36BF600B88D1B /* Gemfile */,
197-
0496C6712CB36BF100B88D1B /* .ruby-version */,
198194
0423F2632E6CA34F00199160 /* .swift-format */,
199195
04566C802E67475E00E3EC6E /* scripts */,
200196
04566C792E67475E00E3EC6E /* docs */,

Brewfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
tap "homebrew/bundle"
2-
brew "rbenv"
3-
brew "ruby-build"
4-
brew "gh"
1+
brew "fastlane"

Brewfile.lock.json

Lines changed: 0 additions & 90 deletions
This file was deleted.

Gemfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)