66 pull_request :
77 types : [opened, synchronize]
88
9+ env :
10+ RUBY_VERSION : ' 3.1.2'
11+ JAVA_VERSION : ' 22'
12+
913jobs :
1014 lint-swift :
1115 name : Lint Swift code
1216 runs-on : ubuntu-latest
17+ timeout-minutes : 5
1318 steps :
1419 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
1520
2126 license :
2227 name : Verify license headers
2328 runs-on : ubuntu-latest
29+ timeout-minutes : 5
2430 steps :
2531 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
2632
2935 check-packed-files :
3036 name : Check package files
3137 runs-on : ubuntu-latest
38+ timeout-minutes : 5
3239 env :
3340 TERM : xterm
3441 steps :
4552 lint :
4653 name : Lint module + sample
4754 runs-on : ubuntu-latest
55+ timeout-minutes : 10
4856 steps :
4957 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
5058
5967 test :
6068 name : Run jest tests
6169 runs-on : ubuntu-latest
70+ timeout-minutes : 10
6271 permissions :
6372 contents : read
6473 pull-requests : write
8493 test-android :
8594 name : Run Android Tests
8695 runs-on : ubuntu-latest
96+ timeout-minutes : 20
8797 needs : [lint, test]
8898 steps :
8999 - name : Checkout
@@ -93,28 +103,42 @@ jobs:
93103 uses : ./.github/actions/setup
94104
95105 - name : Install JDK
96- # if: env.turbo_cache_hit != 1
97106 uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
107+ id : setup-java
98108 with :
99109 distribution : ' zulu'
100- java-version : ' 17 '
110+ java-version : ${{ env.JAVA_VERSION }}
101111
102112 - name : Run Android tests
113+ timeout-minutes : 20
103114 env :
104115 GRADLE_OPTS : -Xmx4g -XX:MaxMetaspaceSize=768m
116+ JAVA_HOME : ${{ steps.setup-java.outputs.path }}
105117 run : |
106- echo "STOREFRONT_DOMAIN=\"myshopify.com\"" > sample/.env
118+ echo "JAVA_HOME: $JAVA_HOME"
119+ java -version
120+ javac -version
121+ echo "STOREFRONT_DOMAIN=myshopify.com" > sample/.env
107122 yarn module build
108123 yarn sample test:android --no-daemon
109124
110125 test-ios :
111126 name : Run iOS Tests
112- runs-on : macos-13-xlarge
127+ runs-on : macos-15-xlarge
128+ timeout-minutes : 20
113129 needs : [lint, lint-swift, test]
114130 steps :
115131 - name : Checkout
116132 uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
117133
134+ - name : Switch to Xcode 16.4
135+ run : |
136+ sudo xcode-select --switch /Applications/Xcode_16.4.app
137+
138+ - name : Display Current Xcode Information
139+ run : |
140+ echo "Xcode Path: $(xcode-select -p)"
141+ echo "Xcode Version: $(xcrun xcodebuild -version)"
118142 - name : Setup iOS Simulator
119143 uses : ./.github/actions/setup-simulator
120144
@@ -132,8 +156,11 @@ jobs:
132156
133157 - name : Install cocoapods
134158 uses : ./.github/actions/install-cocoapods
159+ with :
160+ ruby-version : ${{ env.RUBY_VERSION }}
135161
136162 - name : Run Swift tests
163+ timeout-minutes : 15
137164 # If turbo has already cached the build it will return instantly here
138165 run : |
139166 yarn turbo run test:ios --cache-dir=".turbo" --no-daemon
0 commit comments