74
74
widgets : ${{ steps.scope.outputs.widgets }}
75
75
steps :
76
76
- name : " Check out code"
77
- uses : actions/checkout@v4
77
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
78
78
79
79
- name : " Determine scope"
80
80
id : scope
@@ -121,7 +121,7 @@ jobs:
121
121
mendix_version : ${{ steps.set-mendix-version.outputs.MENDIX_VERSION }}
122
122
steps :
123
123
- name : " Check out code"
124
- uses : actions/checkout@v4
124
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
125
125
- name : " Get Mendix version from JSON"
126
126
id : get-mendix-version
127
127
uses : notiz-dev/github-action-json-property@7a701887f4b568b23eb7b78bb0fc49aaeb1b68d3 # v0.2.0
@@ -155,7 +155,7 @@ jobs:
155
155
docker manifest inspect ghcr.io/mendix/native-widgets/mxbuild:${{ needs.mendix-version.outputs.mendix_version }} || EXIT_CODE=$?
156
156
echo "IMAGE_MISSING=$EXIT_CODE" >> $GITHUB_ENV
157
157
- name : " Check out code"
158
- uses : actions/checkout@v4
158
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
159
159
if : ${{ env.IMAGE_MISSING != 0 }}
160
160
- name : " Build mxbuild image"
161
161
if : ${{ env.IMAGE_MISSING != 0 }}
@@ -175,11 +175,11 @@ jobs:
175
175
contents : read
176
176
steps :
177
177
- name : " Check out code"
178
- uses : actions/checkout@v4
178
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
179
179
with :
180
180
fetch-depth : 0
181
181
- name : " Set up node"
182
- uses : actions/setup-node@v4
182
+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
183
183
with :
184
184
node-version-file : .nvmrc
185
185
cache : yarn
@@ -195,7 +195,7 @@ jobs:
195
195
env :
196
196
NODE_OPTIONS : --max_old_space_size=6144
197
197
- name : " Upload resources artifact"
198
- uses : actions/upload-artifact@v4
198
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
199
199
with :
200
200
name : resources
201
201
path : |
@@ -254,7 +254,7 @@ jobs:
254
254
run : |
255
255
mxbuild -o automation.mda --loose-version-check Native-Mobile-Resources-main/NativeComponentsTestProject.mpr
256
256
- name : " Upload MDA"
257
- uses : actions/upload-artifact@v4
257
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
258
258
with :
259
259
name : mda
260
260
path : automation.mda
@@ -268,7 +268,7 @@ jobs:
268
268
password : ${{ secrets.GITHUB_TOKEN }}
269
269
steps :
270
270
- name : " Check out code"
271
- uses : actions/checkout@v4
271
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
272
272
- name : " Download deployment package"
273
273
uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
274
274
with :
@@ -288,7 +288,7 @@ jobs:
288
288
password : ${{ secrets.GITHUB_TOKEN }}
289
289
steps :
290
290
- name : " Check out code"
291
- uses : actions/checkout@v4
291
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
292
292
- name : " Download project MDA file"
293
293
uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
294
294
with :
@@ -303,13 +303,13 @@ jobs:
303
303
runs-on : ubuntu-22.04
304
304
steps :
305
305
- name : " Check out Native Template for Native Components Test Project"
306
- uses : actions/checkout@v4
306
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
307
307
with :
308
308
repository : mendix/native-template
309
309
ref : ${{ github.event.inputs.nt_branch || 'master' }}
310
310
path : native-template
311
311
- name : " Check out code"
312
- uses : actions/checkout@v4
312
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
313
313
with :
314
314
path : native-widgets
315
315
- name : " Download Android bundle and assets"
@@ -318,13 +318,13 @@ jobs:
318
318
name : android-bundle
319
319
path : bundles/android
320
320
- name : " Set up Node"
321
- uses : actions/setup-node@v4
321
+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
322
322
with :
323
323
node-version-file : native-template/.nvmrc
324
324
cache : npm
325
325
cache-dependency-path : native-template/package-lock.json
326
326
- name : " Cache Android Build"
327
- uses : actions/cache@v3
327
+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
328
328
with :
329
329
path : native-template/android/app/build
330
330
key : ${{ runner.os }}-android-build-${{ hashFiles('native-template/android/app/src/**/*.java', 'native-template/android/app/src/**/*.kt', 'native-template/android/app/build.gradle') }}
@@ -341,7 +341,7 @@ jobs:
341
341
working-directory : native-template
342
342
run : npm i
343
343
- name : " Setup JDK "
344
- uses : actions/setup-java@v4
344
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4
345
345
with :
346
346
java-version : 21
347
347
distribution : temurin
@@ -360,7 +360,7 @@ jobs:
360
360
echo "Listing APK files in the output directory:"
361
361
ls -R native-template/android/app/build/outputs/apk/
362
362
- name : " Archive Android app"
363
- uses : actions/upload-artifact@v4
363
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
364
364
with :
365
365
name : android-app
366
366
path : native-template/android/app/build/outputs/apk/**/*.apk
@@ -369,13 +369,13 @@ jobs:
369
369
runs-on : macos-13
370
370
steps :
371
371
- name : " Check out Native Template for Native Components Test Project"
372
- uses : actions/checkout@v4
372
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
373
373
with :
374
374
repository : mendix/native-template
375
375
ref : ${{ github.event.inputs.nt_branch || 'master' }}
376
376
path : native-template
377
377
- name : " Check out code"
378
- uses : actions/checkout@v4
378
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
379
379
with :
380
380
path : native-widgets
381
381
- name : " Download iOS bundle and assets"
@@ -384,13 +384,13 @@ jobs:
384
384
name : ios-bundle
385
385
path : bundles/ios
386
386
- name : " Set up Node"
387
- uses : actions/setup-node@v4
387
+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
388
388
with :
389
389
node-version-file : native-template/.nvmrc
390
390
cache : npm
391
391
cache-dependency-path : native-template/package-lock.json
392
392
- name : " Cache iOS Build"
393
- uses : actions/cache@v3
393
+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
394
394
with :
395
395
path : native-template/ios/build
396
396
key : ${{ runner.os }}-ios-build-${{ hashFiles('native-template/ios/**/*.swift', 'native-template/ios/**/*.h', 'native-template/ios/Podfile.lock') }}
@@ -407,7 +407,7 @@ jobs:
407
407
run : npm i
408
408
409
409
- name : " Setup Pods cache"
410
- uses : actions/cache@v3
410
+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
411
411
with :
412
412
path : native-template/Pods
413
413
key : ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
@@ -420,7 +420,7 @@ jobs:
420
420
working-directory : native-template/ios
421
421
run : xcodebuild -workspace NativeTemplate.xcworkspace -scheme nativeTemplate -configuration Debug -sdk iphonesimulator -derivedDataPath build ONLY_ACTIVE_ARCH=YES VALID_ARCHS="i386 x86_64"
422
422
- name : " Archive iOS app"
423
- uses : actions/upload-artifact@v4
423
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
424
424
with :
425
425
name : ios-app
426
426
path : native-template/ios/build/Build/Products/**/*.app
@@ -434,18 +434,18 @@ jobs:
434
434
fail-fast : false
435
435
steps :
436
436
- name : " Check out code"
437
- uses : actions/checkout@v4
437
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
438
438
with :
439
439
fetch-depth : 0
440
440
- name : " Set up node"
441
- uses : actions/setup-node@v4
441
+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
442
442
with :
443
443
node-version-file : .nvmrc
444
444
cache : yarn
445
445
- name : " Install dependencies"
446
446
run : yarn install --immutable
447
447
- name : " Download project MDA file"
448
- uses : actions/download-artifact@v4
448
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
449
449
with :
450
450
name : mda
451
451
@@ -478,7 +478,7 @@ jobs:
478
478
# unzip android-app.zip -d android-app
479
479
480
480
- name : " Download Android app"
481
- uses : actions/download-artifact@v4
481
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
482
482
with :
483
483
name : android-app
484
484
path : android-app
@@ -507,7 +507,7 @@ jobs:
507
507
sudo udevadm control --reload-rules
508
508
sudo udevadm trigger --name-match=kvm
509
509
- name : " Run the android tests"
510
- uses : reactivecircus/android-emulator-runner@v2.32 .0
510
+ uses : reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.0 .0
511
511
with :
512
512
api-level : 30
513
513
target : google_apis
@@ -522,21 +522,21 @@ jobs:
522
522
bash maestro/run_maestro_tests.sh android "${{ matrix.widget }}"
523
523
524
524
- name : " Archive runtime logs"
525
- uses : actions/upload-artifact@v4
525
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
526
526
if : always()
527
527
with :
528
528
name : android-runtime-logs-${{ matrix.widget }}
529
529
path : log/*.log
530
530
if-no-files-found : ignore
531
531
- name : " Archive test screenshots"
532
- uses : actions/upload-artifact@v4
532
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
533
533
if : always()
534
534
with :
535
535
name : android-screenshots-${{ matrix.widget }}
536
536
path : ${{ github.workspace }}/maestro/images/actual/android/**/*.png
537
537
if-no-files-found : ignore
538
538
- name : " Archive artifacts"
539
- uses : actions/upload-artifact@v4
539
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
540
540
if : always()
541
541
with :
542
542
name : android-artifacts-${{ matrix.widget }}
@@ -552,11 +552,11 @@ jobs:
552
552
fail-fast : false
553
553
steps :
554
554
- name : " Check out code"
555
- uses : actions/checkout@v4
555
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
556
556
with :
557
557
fetch-depth : 0
558
558
- name : " Set up node"
559
- uses : actions/setup-node@v4
559
+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
560
560
with :
561
561
node-version-file : .nvmrc
562
562
cache : yarn
@@ -565,7 +565,7 @@ jobs:
565
565
yarn cache clean
566
566
yarn install --immutable
567
567
- name : " Download project MDA file"
568
- uses : actions/download-artifact@v4
568
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
569
569
with :
570
570
name : mda
571
571
@@ -637,21 +637,21 @@ jobs:
637
637
bash maestro/run_maestro_tests.sh ios "${{ matrix.widget }}"
638
638
639
639
- name : " Archive runtime logs"
640
- uses : actions/upload-artifact@v4
640
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
641
641
if : always()
642
642
with :
643
643
name : ios-runtime-logs-${{ matrix.widget }}
644
644
path : log/*.log
645
645
if-no-files-found : ignore
646
646
- name : " Archive test screenshots"
647
- uses : actions/upload-artifact@v4
647
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
648
648
if : always()
649
649
with :
650
650
name : ios-screenshots-${{ matrix.widget }}
651
651
path : ${{ github.workspace }}/maestro/images/actual/ios/**/*.png
652
652
if-no-files-found : ignore
653
653
- name : " Archive artifacts"
654
- uses : actions/upload-artifact@v4
654
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
655
655
if : always()
656
656
with :
657
657
name : ios-artifacts-${{ matrix.widget }}
@@ -666,7 +666,7 @@ jobs:
666
666
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
667
667
steps :
668
668
- name : " Check out code"
669
- uses : actions/checkout@v4
669
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
670
670
671
671
- name : " Download Android screenshots"
672
672
run : |
@@ -688,7 +688,7 @@ jobs:
688
688
689
689
690
690
- name : " Set up node"
691
- uses : actions/setup-node@v4
691
+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
692
692
with :
693
693
node-version-file : .nvmrc
694
694
cache : yarn
@@ -705,14 +705,14 @@ jobs:
705
705
run : node ${{ github.workspace }}/maestro/helpers/compare_screenshots.js ios
706
706
707
707
- name : " Archive diff results"
708
- uses : actions/upload-artifact@v4
708
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
709
709
with :
710
710
name : screenshot-diffs
711
711
path : images/diffs
712
712
if-no-files-found : ignore
713
713
714
714
- name : " Archive comparison results"
715
- uses : actions/upload-artifact@v4
715
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
716
716
with :
717
717
name : comparison-results
718
718
path : compare_output.txt
0 commit comments