1
1
name : Kotlin CI
2
2
3
3
on :
4
- # Use pull_request_target so we can lock the runner down to run only on the main branch.
5
- # When we want to test changes to this workflow, then we can use:
6
- # pull_request :
7
- # temporarily. We will also need to change the runner group permissions for the
8
- # workflow-kotlin-test-runner-ubuntu-4core group so that it can run with the branch/SHA
9
- # of the PR.
10
- pull_request_target :
11
- branches :
12
- - main
4
+ pull_request :
13
5
merge_group :
14
6
15
7
env :
28
20
steps :
29
21
- name : Checkout
30
22
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31
- with :
32
- ref : ${{ github.head_ref }}
33
23
34
24
- name : main build
35
25
uses : ./.github/actions/gradle-task
44
34
steps :
45
35
- name : Checkout
46
36
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
47
- with :
48
- ref : ${{ github.head_ref }}
49
37
50
38
- name : Run dokka to validate kdoc
51
39
uses : ./.github/actions/gradle-task
59
47
steps :
60
48
- name : Checkout
61
49
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
62
- with :
63
- ref : ${{ github.head_ref }}
64
50
65
51
- name : check published artifacts
66
52
uses : ./.github/actions/gradle-task-with-commit
77
63
steps :
78
64
- name : Checkout
79
65
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
80
- with :
81
- ref : ${{ github.head_ref }}
82
66
83
67
- name : check published artifacts
84
68
uses : ./.github/actions/gradle-task-with-commit
94
78
steps :
95
79
- name : Checkout
96
80
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
97
- with :
98
- ref : ${{ github.head_ref }}
99
81
100
82
# If the PR was made by a maintainer or Renovate, automatically update baselines and push
101
83
# so that no one has to check out the branch and update the baselines manually.
@@ -113,8 +95,6 @@ jobs :
113
95
steps :
114
96
- name : Checkout
115
97
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
116
- with :
117
- ref : ${{ github.head_ref }}
118
98
119
99
# If the PR was made by a maintainer or Renovate, automatically format and push
120
100
# so that no one has to check out the branch and do it manually.
@@ -132,8 +112,6 @@ jobs :
132
112
steps :
133
113
- name : Checkout
134
114
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
135
- with :
136
- ref : ${{ github.head_ref }}
137
115
138
116
# If the PR was made by a maintainer or Renovate, automatically format and push
139
117
# so that no one has to check out the branch and do it manually.
@@ -153,8 +131,7 @@ jobs :
153
131
steps :
154
132
- name : Checkout
155
133
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
156
- with :
157
- ref : ${{ github.head_ref }}
134
+
158
135
- name : Check with Gradle
159
136
uses : ./.github/actions/gradle-task
160
137
with :
@@ -169,8 +146,7 @@ jobs :
169
146
steps :
170
147
- name : Checkout
171
148
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
172
- with :
173
- ref : ${{ github.head_ref }}
149
+
174
150
- name : Check with Gradle
175
151
uses : ./.github/actions/gradle-task
176
152
with :
@@ -196,8 +172,7 @@ jobs :
196
172
# These setup steps should be common across all jobs in this workflow.
197
173
- name : Checkout
198
174
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
199
- with :
200
- ref : ${{ github.head_ref }}
175
+
201
176
- name : build tutorials
202
177
uses : ./.github/actions/gradle-task
203
178
with :
@@ -212,8 +187,7 @@ jobs :
212
187
steps :
213
188
- name : Checkout
214
189
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
215
- with :
216
- ref : ${{ github.head_ref }}
190
+
217
191
- name : Check with Gradle
218
192
uses : ./.github/actions/gradle-task
219
193
with :
@@ -234,8 +208,7 @@ jobs :
234
208
steps :
235
209
- name : Checkout
236
210
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
237
- with :
238
- ref : ${{ github.head_ref }}
211
+
239
212
- name : Check with Gradle
240
213
uses : ./.github/actions/gradle-task
241
214
with :
@@ -256,8 +229,7 @@ jobs :
256
229
steps :
257
230
- name : Checkout
258
231
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
259
- with :
260
- ref : ${{ github.head_ref }}
232
+
261
233
- name : Check with Gradle
262
234
uses : ./.github/actions/gradle-task
263
235
with :
@@ -278,8 +250,7 @@ jobs :
278
250
steps :
279
251
- name : Checkout
280
252
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
281
- with :
282
- ref : ${{ github.head_ref }}
253
+
283
254
- name : Check with Gradle
284
255
uses : ./.github/actions/gradle-task
285
256
with :
@@ -300,8 +271,6 @@ jobs :
300
271
steps :
301
272
- name : Checkout
302
273
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
303
- with :
304
- ref : ${{ github.head_ref }}
305
274
306
275
# # JS Specific Tests (for KMP js actuals in core and runtime).
307
276
- name : Check with Gradle
@@ -330,8 +299,6 @@ jobs :
330
299
steps :
331
300
- name : Checkout
332
301
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
333
- with :
334
- ref : ${{ github.head_ref }}
335
302
336
303
- name : Instrumented tests
337
304
uses : ./.github/actions/gradle-tasks-with-emulator
@@ -357,8 +324,6 @@ jobs :
357
324
steps :
358
325
- name : Checkout
359
326
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
360
- with :
361
- ref : ${{ github.head_ref }}
362
327
363
328
- name : Instrumented tests
364
329
uses : ./.github/actions/gradle-tasks-with-emulator
@@ -386,8 +351,6 @@ jobs :
386
351
steps :
387
352
- name : Checkout
388
353
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
389
- with :
390
- ref : ${{ github.head_ref }}
391
354
392
355
- name : Instrumented tests
393
356
uses : ./.github/actions/gradle-tasks-with-emulator
0 commit comments