6
6
pull_request :
7
7
types : [opened, synchronize]
8
8
9
+ env :
10
+ RUBY_VERSION : ' 3.1.2'
11
+ JAVA_VERSION : ' 22'
12
+
9
13
jobs :
10
14
lint-swift :
11
15
name : Lint Swift code
12
16
runs-on : ubuntu-latest
17
+ timeout-minutes : 5
13
18
steps :
14
19
- uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
15
20
21
26
license :
22
27
name : Verify license headers
23
28
runs-on : ubuntu-latest
29
+ timeout-minutes : 5
24
30
steps :
25
31
- uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
26
32
29
35
check-packed-files :
30
36
name : Check package files
31
37
runs-on : ubuntu-latest
38
+ timeout-minutes : 5
32
39
env :
33
40
TERM : xterm
34
41
steps :
45
52
lint :
46
53
name : Lint module + sample
47
54
runs-on : ubuntu-latest
55
+ timeout-minutes : 10
48
56
steps :
49
57
- uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
50
58
59
67
test :
60
68
name : Run jest tests
61
69
runs-on : ubuntu-latest
70
+ timeout-minutes : 10
62
71
permissions :
63
72
contents : read
64
73
pull-requests : write
84
93
test-android :
85
94
name : Run Android Tests
86
95
runs-on : ubuntu-latest
96
+ timeout-minutes : 20
87
97
needs : [lint, test]
88
98
steps :
89
99
- name : Checkout
@@ -93,28 +103,42 @@ jobs:
93
103
uses : ./.github/actions/setup
94
104
95
105
- name : Install JDK
96
- # if: env.turbo_cache_hit != 1
97
106
uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
107
+ id : setup-java
98
108
with :
99
109
distribution : ' zulu'
100
- java-version : ' 17 '
110
+ java-version : ${{ env.JAVA_VERSION }}
101
111
102
112
- name : Run Android tests
113
+ timeout-minutes : 20
103
114
env :
104
115
GRADLE_OPTS : -Xmx4g -XX:MaxMetaspaceSize=768m
116
+ JAVA_HOME : ${{ steps.setup-java.outputs.path }}
105
117
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
107
122
yarn module build
108
123
yarn sample test:android --no-daemon
109
124
110
125
test-ios :
111
126
name : Run iOS Tests
112
- runs-on : macos-13-xlarge
127
+ runs-on : macos-15-xlarge
128
+ timeout-minutes : 20
113
129
needs : [lint, lint-swift, test]
114
130
steps :
115
131
- name : Checkout
116
132
uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
117
133
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)"
118
142
- name : Setup iOS Simulator
119
143
uses : ./.github/actions/setup-simulator
120
144
@@ -132,8 +156,11 @@ jobs:
132
156
133
157
- name : Install cocoapods
134
158
uses : ./.github/actions/install-cocoapods
159
+ with :
160
+ ruby-version : ${{ env.RUBY_VERSION }}
135
161
136
162
- name : Run Swift tests
163
+ timeout-minutes : 15
137
164
# If turbo has already cached the build it will return instantly here
138
165
run : |
139
166
yarn turbo run test:ios --cache-dir=".turbo" --no-daemon
0 commit comments