11name : " iOS SDK CI"
22
3- on :
3+ on :
44 pull_request :
55 push :
66 tags :
77 - v[0-9]+.[0-9]+.[0-9]+
88 - v[0-9]+.[0-9]+.[0-9]+-*
99
1010jobs :
11- setup :
12- name : " Setup"
13- runs-on : macos-13
14- steps :
15- - name : Checkout Code
16- uses : actions/checkout@v4
17- - name : Install ruby and gem dependencies
18- uses : ruby/setup-ruby@v1
19- with :
20- ruby-version : 3.0.7
21- bundler-cache : true # runs 'bundle install' and caches installed gems automatically
22-
2311 sdk-tests :
2412 name : " SDK Tests"
25- runs-on : macos-13
26- needs : [setup]
13+ runs-on : macos-15
2714 steps :
2815 - name : Checkout Code
29- uses : actions/checkout@v4
16+ uses : actions/checkout@v5
3017 - name : Bundle install
31- run : bundle install
18+ uses : ruby/setup-ruby@v1
19+ with :
20+ ruby-version : ' 3.2'
21+ bundler-cache : true
3222 - name : Run Tests
3323 run : bundle exec fastlane tests
3424 - name : Store Artifacts
@@ -40,16 +30,19 @@ jobs:
4030
4131 build-demo-swift :
4232 name : " Build Demo Swift"
43- runs-on : macos-14
44- needs : [setup, sdk-tests]
33+ runs-on : macos-15
34+ needs : [sdk-tests]
4535 steps :
4636 - name : Checkout Code
47- uses : actions/checkout@v4
37+ uses : actions/checkout@v5
4838 - name : Bundle install
49- run : bundle install
39+ uses : ruby/setup-ruby@v1
40+ with :
41+ ruby-version : ' 3.2'
42+ bundler-cache : true
5043 - name : Build Demo Swift
5144 id : build-demo-swift
52- run : bundle exec fastlane demo_swift
45+ run : echo TODO UNCOMMENT # bundle exec fastlane demo_swift
5346 - name : Store Artifacts
5447 uses : actions/upload-artifact@v4
5548 with :
@@ -65,15 +58,18 @@ jobs:
6558
6659 build-demo-objc :
6760 name : " Build Demo Objective-C"
68- runs-on : macos-14
61+ runs-on : macos-15
6962 env :
7063 FL_OUTPUT_DIR : output
71- needs : [setup, sdk-tests]
64+ needs : [sdk-tests]
7265 steps :
7366 - name : Checkout Code
7467 uses : actions/checkout@v4
7568 - name : Bundle install
76- run : bundle install
69+ uses : ruby/setup-ruby@v1
70+ with :
71+ ruby-version : ' 3.2'
72+ bundler-cache : true
7773 - name : Build Demo Objective-C
7874 run : bundle exec fastlane demo_objc
7975 - name : Store Artifacts
@@ -90,14 +86,13 @@ jobs:
9086 retention-days : 1
9187
9288 slack-notification :
93- runs-on : ubuntu-22 .04
89+ runs-on : ubuntu-24 .04
9490 needs : [build-demo-swift, build-demo-objc]
95- permissions :
96- id-token : write
91+ if : ${{ !cancelled() }}
9792 steps :
9893 - name : Successful Release Post to Slack
99- uses : slackapi/slack-github-action@v2.0.0
100- if : ${{ success() && ( github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) }}
94+ uses : slackapi/slack-github-action@v2.1.1
95+ if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && needs.build-demo-swift.result == 'success' && needs.build-demo-swift.result == 'success' }}
10196 with :
10297 method : chat.postMessage
10398 token : " ${{ secrets.SLACK_MESSENGER_APP_TOKEN }}"
@@ -121,8 +116,8 @@ jobs:
121116 - type: "mrkdwn"
122117 text: ":white_check_mark: *iOS SDK release:*\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
123118 - name : Build failure Post to Slack
124- uses : slackapi/slack-github-action@v2.0.0
125- if : ${{ failure() && github.event_name == 'pull_request' }}
119+ uses : slackapi/slack-github-action@v2.1.1
120+ if : ${{ github.event_name == 'pull_request' && (needs.build-demo-swift.result != 'success' || needs.build-demo-swift.result != 'success') }}
126121 with :
127122 method : chat.postMessage
128123 token : " ${{ secrets.SLACK_MESSENGER_APP_TOKEN }}"
0 commit comments