File tree Expand file tree Collapse file tree 2 files changed +64
-2
lines changed Expand file tree Collapse file tree 2 files changed +64
-2
lines changed Original file line number Diff line number Diff line change 88 workflow_dispatch :
99
1010jobs :
11- build :
12- name : Build iOS App
11+ on_pull_request :
12+ if : github.event_name == 'pull_request'
13+ name : Run tuist
1314 runs-on : macos-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v5
18+
19+ - name : Mise (Ruby + Tuist + SwiftLint)
20+ uses : jdx/mise-action@v3
21+
22+ - name : Cache gems
23+ uses : actions/cache@v4
24+ with :
25+ path : vendor/cache
26+ key : ${{ runner.os }}-mise-gems-${{ hashFiles('Gemfile.lock') }}
1427
28+ - name : Install Fastlane with cache
29+ run : |
30+ bundle cache
31+
32+ - name : Set Xcode 26.0.1
33+ run : |
34+ sudo xcode-select -s /Applications/Xcode_26.0.1.app
35+
36+ - name : Cache Tuist .build
37+ uses : actions/cache@v4
38+ with :
39+ path : Tuist/.build
40+ key : tuist-cache-${{ hashFiles('Tuist/Package.resolved') }}
41+ restore-keys : |
42+ tuist-cache-
43+
44+ - name : Run Fastlane Install
45+ run : |
46+ bundle exec fastlane github_ci
47+ env :
48+ CONNECT_API_KEY : ${{ secrets.CONNECT_API_KEY }}
49+ FASTLANE_USER : ${{ secrets.FASTLANE_USER }}
50+ FASTLANE_TEAM_ID : ${{ secrets.FASTLANE_TEAM_ID }}
51+ MATCH_PASSWORD : ${{ secrets.MATCH_PASSWORD }}
52+ MATCH_GIT_BASIC_AUTHORIZATION : ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
53+ TUIST_CONFIG_TOKEN : ${{ secrets.TUIST_CONFIG_TOKEN }}
54+ SENTRY_DSYM_TOKEN : ${{ secrets.SENTRY_DSYM_TOKEN }}
55+ TG_BOT_TOKEN : ${{ secrets.TG_BOT_TOKEN }}
56+ TG_CHAT_ID : ${{ secrets.TG_CHAT_ID }}
57+
58+
59+ on_developer_push :
60+ if : github.event_name == 'push'
61+ name : Build iOS App
62+ runs-on : macos-latest
1563 steps :
1664 - name : Checkout
1765 uses : actions/checkout@v5
Original file line number Diff line number Diff line change @@ -113,6 +113,20 @@ platform :ios do
113113 build_ipa
114114 end
115115
116+ desc "GitHub Actions CI"
117+ lane :github_ci
118+ setup_ci if ENV [ 'CI' ]
119+ prepare_certificates
120+ update_build_number ( build_number : "1" )
121+ Dir . chdir ( ".." ) do
122+ sh ( "tuist install" )
123+ sh ( "tuist build ForPDA --generate" )
124+ sh ( "tuist test ForPDA" )
125+ sh ( "tuist share ForPDA" )
126+ sh ( "tuist inspect build" )
127+ end
128+ end
129+
116130 # --------------------------------------------------
117131
118132 desc "Prepare certificates via match"
You can’t perform that action at this time.
0 commit comments