@@ -32,10 +32,10 @@ jobs:
32
32
runs-on : ubuntu-22.04
33
33
steps :
34
34
- name : " Check out code"
35
- uses : actions/checkout@v3.4.0
35
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
36
36
- name : " Get Mendix version"
37
37
id : get-mendix-version
38
-
38
+ uses : notiz-dev/github-action-json-property@7a701887f4b568b23eb7b78bb0fc49aaeb1b68d3 # v0.2.0
39
39
with :
40
40
path : configs/e2e/mendix-versions.json
41
41
prop_path : latest
48
48
MENDIX_VERSION : ${{ needs.mendix-version.outputs.mendix-version }}
49
49
steps :
50
50
- name : " Login to GitHub Container Registry"
51
- uses : docker/login-action@v2 .1.0
51
+ uses : docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3 .1.0
52
52
with :
53
53
registry : ghcr.io
54
54
username : ${{ github.actor }}
@@ -58,11 +58,11 @@ jobs:
58
58
docker manifest inspect ghcr.io/mendix/native-widgets/mxbuild:${{ env.MENDIX_VERSION }} || EXIT_CODE=$?
59
59
echo "IMAGE_MISSING=$EXIT_CODE" >> $GITHUB_ENV
60
60
- name : " Check out code"
61
- uses : actions/checkout@v3.4.0
61
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
62
62
if : ${{ env.IMAGE_MISSING != 0 }}
63
63
- name : " Build mxbuild image"
64
64
if : ${{ env.IMAGE_MISSING != 0 }}
65
- uses : docker/build-push-action@v4.0 .0
65
+ uses : docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3 .0
66
66
with :
67
67
file : ./.github/scripts/mxbuild.Dockerfile
68
68
context : ./.github/scripts
@@ -79,11 +79,11 @@ jobs:
79
79
contents : read
80
80
steps :
81
81
- name : " Check out code"
82
- uses : actions/checkout@v3.4.0
82
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
83
83
with :
84
84
fetch-depth : 0
85
85
- name : " Set up node"
86
- uses : actions/setup-node@v3.6.0
86
+ uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
87
87
with :
88
88
node-version-file : .nvmrc
89
89
cache : yarn
96
96
env :
97
97
NODE_OPTIONS : --max_old_space_size=6144
98
98
- name : " Upload resources artifact"
99
- uses : actions/upload-artifact@v3.1.2
99
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
100
100
with :
101
101
name : resources
102
102
path : |
@@ -115,11 +115,11 @@ jobs:
115
115
- name : " Download test project"
116
116
run : curl -L -o project.zip https://github.com/mendix/Native-Mobile-Resources/archive/refs/heads/main.zip
117
117
- name : " Extract test project"
118
-
118
+ uses : montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28 # v1.0.0
119
119
with :
120
120
args : unzip -qq project.zip
121
121
- name : " Download resources artifact"
122
- uses : actions/download-artifact@v3.0.2
122
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
123
123
with :
124
124
name : resources
125
125
path : resources
@@ -146,9 +146,9 @@ jobs:
146
146
mv -f resources/jsActions/nanoflow-actions-native/* Native-Mobile-Resources-main/javascriptsource/nanoflowcommons/actions/
147
147
fi
148
148
- name : " Build test project"
149
- run : mxbuild -o automation.mda Native-Mobile-Resources-main/NativeComponentsTestProject.mpr
149
+ run : mxbuild -o automation.mda --loose-version-check Native-Mobile-Resources-main/NativeComponentsTestProject.mpr
150
150
- name : " Upload MDA"
151
- uses : actions/upload-artifact@v3.1.2
151
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
152
152
with :
153
153
name : mda
154
154
path : automation.mda
@@ -158,9 +158,9 @@ jobs:
158
158
container : ghcr.io/mendix/native-widgets/mxbuild:${{ needs.mendix-version.outputs.mendix-version }}
159
159
steps :
160
160
- name : " Check out code"
161
- uses : actions/checkout@v3.4.0
161
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
162
162
- name : " Download deployment package"
163
- uses : actions/download-artifact@v3.0.2
163
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
164
164
with :
165
165
name : mda
166
166
- name : " Create Android bundle"
@@ -174,9 +174,9 @@ jobs:
174
174
container : ghcr.io/mendix/native-widgets/mxbuild:${{ needs.mendix-version.outputs.mendix-version }}
175
175
steps :
176
176
- name : " Check out code"
177
- uses : actions/checkout@v3.4.0
177
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
178
178
- name : " Download project MDA file"
179
- uses : actions/download-artifact@v3.0.2
179
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
180
180
with :
181
181
name : mda
182
182
- name : " Create iOS bundle"
@@ -189,22 +189,22 @@ jobs:
189
189
runs-on : ubuntu-22.04
190
190
steps :
191
191
- name : " Check out Native Template for Native Components Test Project"
192
- uses : actions/checkout@v3.4.0
192
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
193
193
with :
194
194
repository : mendix/native-template
195
195
ref : master
196
196
path : native-template
197
197
- name : " Check out code"
198
- uses : actions/checkout@v3.4.0
198
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
199
199
with :
200
200
path : native-widgets
201
201
- name : " Download Android bundle and assets"
202
- uses : actions/download-artifact@v3.0.2
202
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
203
203
with :
204
204
name : android-bundle
205
205
path : bundles/android
206
206
- name : " Set up Node"
207
- uses : actions/setup-node@v3.6.0
207
+ uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
208
208
with :
209
209
node-version-file : native-template/.nvmrc
210
210
cache : npm
@@ -219,17 +219,17 @@ jobs:
219
219
- name : " Install dependencies"
220
220
working-directory : native-template
221
221
run : npm i
222
- - name : " Setup JDK 11 "
223
- uses : actions/setup-java@v3.10.0
222
+ - name : " Setup JDK 17 "
223
+ uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
224
224
with :
225
- java-version : 11
225
+ java-version : 17
226
226
distribution : temurin
227
227
cache : gradle
228
228
- name : " Build Android app"
229
229
working-directory : native-template/android
230
230
run : ./gradlew assembleAppstoreDebug assembleAppstoreDebugAndroidTest
231
231
- name : " Archive Android app"
232
- uses : actions/upload-artifact@v3.1.2
232
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
233
233
with :
234
234
name : android-app
235
235
path : native-template/android/app/build/outputs/apk/**/*.apk
@@ -238,22 +238,22 @@ jobs:
238
238
runs-on : macos-12
239
239
steps :
240
240
- name : " Check out Native Template for Native Components Test Project"
241
- uses : actions/checkout@v3.4.0
241
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
242
242
with :
243
243
repository : mendix/native-template
244
244
ref : master
245
245
path : native-template
246
246
- name : " Check out code"
247
- uses : actions/checkout@v3.4.0
247
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
248
248
with :
249
249
path : native-widgets
250
250
- name : " Download iOS bundle and assets"
251
- uses : actions/download-artifact@v3.0.2
251
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
252
252
with :
253
253
name : ios-bundle
254
254
path : bundles/ios
255
255
- name : " Set up Node"
256
- uses : actions/setup-node@v3.6.0
256
+ uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
257
257
with :
258
258
node-version-file : native-template/.nvmrc
259
259
cache : npm
@@ -269,7 +269,7 @@ jobs:
269
269
run : npm i
270
270
271
271
- name : " Setup Pods cache"
272
- uses : actions/cache@v3.3.1
272
+ uses : actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # v2
273
273
with :
274
274
path : native-template/Pods
275
275
key : ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
@@ -282,17 +282,17 @@ jobs:
282
282
working-directory : native-template/ios
283
283
run : xcodebuild -workspace NativeTemplate.xcworkspace -scheme nativeTemplate -configuration Debug -sdk iphonesimulator -derivedDataPath build ONLY_ACTIVE_ARCH=YES VALID_ARCHS="i386 x86_64"
284
284
- name : " Archive iOS app"
285
- uses : actions/upload-artifact@v3.1.2
285
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
286
286
with :
287
287
name : ios-app
288
288
path : native-template/ios/build/Build/Products/**/*.app
289
289
android-avd :
290
290
runs-on : macos-12
291
291
steps :
292
292
- name : " Check out code"
293
- uses : actions/checkout@v3.4.0
293
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
294
294
- name : " Setup AVD cache"
295
- uses : actions/cache@v3.3.1
295
+ uses : actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # v2
296
296
id : avd-cache
297
297
with :
298
298
path : |
@@ -302,7 +302,7 @@ jobs:
302
302
key : pixel_30_x86_64_default_3core_and_system_images
303
303
- name : " Create AVD and generate snapshot for caching"
304
304
if : steps.avd-cache.outputs.cache-hit != 'true'
305
- uses : reactivecircus/android-emulator-runner@v2.27.0
305
+ uses : reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # v2.30.1
306
306
with :
307
307
api-level : 30
308
308
target : default
@@ -321,18 +321,18 @@ jobs:
321
321
runs-on : macos-12
322
322
steps :
323
323
- name : " Check out code"
324
- uses : actions/checkout@v3.4.0
324
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
325
325
with :
326
326
fetch-depth : 0
327
327
- name : " Set up node"
328
- uses : actions/setup-node@v3.6.0
328
+ uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
329
329
with :
330
330
node-version-file : .nvmrc
331
331
cache : yarn
332
332
- name : " Install dependencies"
333
333
run : yarn install --immutable
334
334
- name : " Download project MDA file"
335
- uses : actions/download-artifact@v3.0.2
335
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
336
336
with :
337
337
name : mda
338
338
- name : " Start runtime"
@@ -341,7 +341,7 @@ jobs:
341
341
mda-file : automation.mda
342
342
mendix-version : ${{ needs.mendix-version.outputs.mendix-version }}
343
343
- name : " Download Android app"
344
- uses : actions/download-artifact@v3.0.2
344
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
345
345
with :
346
346
name : android-app
347
347
path : android-app
@@ -350,7 +350,7 @@ jobs:
350
350
mkdir -p detox/apps
351
351
find android-app -type f -iname "*.apk" -exec mv {} detox/apps/ \;
352
352
- name : " Setup AVD cache"
353
- uses : actions/cache@v3.3.1
353
+ uses : actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # v2
354
354
id : avd-cache
355
355
with :
356
356
path : |
@@ -359,7 +359,7 @@ jobs:
359
359
/Users/runner/Library/Android/sdk/system-images/**/*
360
360
key : pixel_30_x86_64_default_3core_and_system_images
361
361
- name : " Run tests"
362
- uses : reactivecircus/android-emulator-runner@v2.27.0
362
+ uses : reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # v2.30.1
363
363
with :
364
364
api-level : 30
365
365
target : default
@@ -381,14 +381,14 @@ jobs:
381
381
adb shell pm install -r -g -t /data/local/tmp/detox/Test.apk 2>/dev/null
382
382
yarn workspaces foreach ${{ needs.scope.outputs.scope }} run test:e2e:android
383
383
- name : " Archive runtime logs"
384
- uses : actions/upload-artifact@v3.1.2
384
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
385
385
if : always()
386
386
with :
387
387
name : android-runtime-logs
388
388
path : log/*.log
389
389
if-no-files-found : ignore
390
390
- name : " Archive test screenshot diff results"
391
- uses : actions/upload-artifact@v3.1.2
391
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
392
392
if : failure()
393
393
with :
394
394
name : android-screenshot-results
@@ -397,7 +397,7 @@ jobs:
397
397
${{ github.workspace }}/packages/**/e2e/images/actual/**/*.png
398
398
if-no-files-found : ignore
399
399
- name : " Archive artifacts"
400
- uses : actions/upload-artifact@v3.1.2
400
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
401
401
if : always()
402
402
with :
403
403
name : android-artifacts
@@ -408,18 +408,18 @@ jobs:
408
408
runs-on : macos-12
409
409
steps :
410
410
- name : " Check out code"
411
- uses : actions/checkout@v3.4.0
411
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
412
412
with :
413
413
fetch-depth : 0
414
414
- name : " Set up node"
415
- uses : actions/setup-node@v3.6.0
415
+ uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
416
416
with :
417
417
node-version-file : .nvmrc
418
418
cache : yarn
419
419
- name : " Install dependencies"
420
420
run : yarn install --immutable
421
421
- name : " Download project MDA file"
422
- uses : actions/download-artifact@v3.0.2
422
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
423
423
with :
424
424
name : mda
425
425
# Used when new xCode version of simulator should be created
@@ -435,7 +435,7 @@ jobs:
435
435
mda-file : automation.mda
436
436
mendix-version : ${{ needs.mendix-version.outputs.mendix-version }}
437
437
- name : " Download iOS app"
438
- uses : actions/download-artifact@v3.0.2
438
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
439
439
with :
440
440
name : ios-app
441
441
path : ios-app
@@ -458,14 +458,14 @@ jobs:
458
458
- name : " Run tests"
459
459
run : yarn workspaces foreach ${{ needs.scope.outputs.scope }} run test:e2e:ios
460
460
- name : " Archive runtime logs"
461
- uses : actions/upload-artifact@v3.1.2
461
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
462
462
if : always()
463
463
with :
464
464
name : ios-runtime-logs
465
465
path : log/*.log
466
466
if-no-files-found : ignore
467
467
- name : " Archive test screenshot diff results"
468
- uses : actions/upload-artifact@v3.1.2
468
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
469
469
if : failure()
470
470
with :
471
471
name : ios-screenshot-results
@@ -474,7 +474,7 @@ jobs:
474
474
${{ github.workspace }}/packages/**/e2e/images/actual/**/*.png
475
475
if-no-files-found : ignore
476
476
- name : " Archive artifacts"
477
- uses : actions/upload-artifact@v3.1.2
477
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
478
478
if : always()
479
479
with :
480
480
name : ios-artifacts
0 commit comments