7474 widgets : ${{ steps.scope.outputs.widgets }}
7575 steps :
7676 - name : " Check out code"
77- uses : actions/checkout@v4
77+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7878
7979 - name : " Determine scope"
8080 id : scope
@@ -121,7 +121,7 @@ jobs:
121121 mendix_version : ${{ steps.set-mendix-version.outputs.MENDIX_VERSION }}
122122 steps :
123123 - name : " Check out code"
124- uses : actions/checkout@v4
124+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
125125 - name : " Get Mendix version from JSON"
126126 id : get-mendix-version
127127 uses : notiz-dev/github-action-json-property@7a701887f4b568b23eb7b78bb0fc49aaeb1b68d3 # v0.2.0
@@ -155,7 +155,7 @@ jobs:
155155 docker manifest inspect ghcr.io/mendix/native-widgets/mxbuild:${{ needs.mendix-version.outputs.mendix_version }} || EXIT_CODE=$?
156156 echo "IMAGE_MISSING=$EXIT_CODE" >> $GITHUB_ENV
157157 - name : " Check out code"
158- uses : actions/checkout@v4
158+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
159159 if : ${{ env.IMAGE_MISSING != 0 }}
160160 - name : " Build mxbuild image"
161161 if : ${{ env.IMAGE_MISSING != 0 }}
@@ -175,11 +175,11 @@ jobs:
175175 contents : read
176176 steps :
177177 - name : " Check out code"
178- uses : actions/checkout@v4
178+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
179179 with :
180180 fetch-depth : 0
181181 - name : " Set up node"
182- uses : actions/setup-node@v4
182+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
183183 with :
184184 node-version-file : .nvmrc
185185 cache : yarn
@@ -195,7 +195,7 @@ jobs:
195195 env :
196196 NODE_OPTIONS : --max_old_space_size=6144
197197 - name : " Upload resources artifact"
198- uses : actions/upload-artifact@v4
198+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
199199 with :
200200 name : resources
201201 path : |
@@ -254,7 +254,7 @@ jobs:
254254 run : |
255255 mxbuild -o automation.mda --loose-version-check Native-Mobile-Resources-main/NativeComponentsTestProject.mpr
256256 - name : " Upload MDA"
257- uses : actions/upload-artifact@v4
257+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
258258 with :
259259 name : mda
260260 path : automation.mda
@@ -268,7 +268,7 @@ jobs:
268268 password : ${{ secrets.GITHUB_TOKEN }}
269269 steps :
270270 - name : " Check out code"
271- uses : actions/checkout@v4
271+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
272272 - name : " Download deployment package"
273273 uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
274274 with :
@@ -288,7 +288,7 @@ jobs:
288288 password : ${{ secrets.GITHUB_TOKEN }}
289289 steps :
290290 - name : " Check out code"
291- uses : actions/checkout@v4
291+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
292292 - name : " Download project MDA file"
293293 uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
294294 with :
@@ -303,13 +303,13 @@ jobs:
303303 runs-on : ubuntu-22.04
304304 steps :
305305 - name : " Check out Native Template for Native Components Test Project"
306- uses : actions/checkout@v4
306+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
307307 with :
308308 repository : mendix/native-template
309309 ref : ${{ github.event.inputs.nt_branch || 'master' }}
310310 path : native-template
311311 - name : " Check out code"
312- uses : actions/checkout@v4
312+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
313313 with :
314314 path : native-widgets
315315 - name : " Download Android bundle and assets"
@@ -318,13 +318,13 @@ jobs:
318318 name : android-bundle
319319 path : bundles/android
320320 - name : " Set up Node"
321- uses : actions/setup-node@v4
321+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
322322 with :
323323 node-version-file : native-template/.nvmrc
324324 cache : npm
325325 cache-dependency-path : native-template/package-lock.json
326326 - name : " Cache Android Build"
327- uses : actions/cache@v3
327+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
328328 with :
329329 path : native-template/android/app/build
330330 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:
341341 working-directory : native-template
342342 run : npm i
343343 - name : " Setup JDK "
344- uses : actions/setup-java@v4
344+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4
345345 with :
346346 java-version : 21
347347 distribution : temurin
@@ -360,7 +360,7 @@ jobs:
360360 echo "Listing APK files in the output directory:"
361361 ls -R native-template/android/app/build/outputs/apk/
362362 - name : " Archive Android app"
363- uses : actions/upload-artifact@v4
363+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
364364 with :
365365 name : android-app
366366 path : native-template/android/app/build/outputs/apk/**/*.apk
@@ -369,13 +369,13 @@ jobs:
369369 runs-on : macos-13
370370 steps :
371371 - name : " Check out Native Template for Native Components Test Project"
372- uses : actions/checkout@v4
372+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
373373 with :
374374 repository : mendix/native-template
375375 ref : ${{ github.event.inputs.nt_branch || 'master' }}
376376 path : native-template
377377 - name : " Check out code"
378- uses : actions/checkout@v4
378+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
379379 with :
380380 path : native-widgets
381381 - name : " Download iOS bundle and assets"
@@ -384,13 +384,13 @@ jobs:
384384 name : ios-bundle
385385 path : bundles/ios
386386 - name : " Set up Node"
387- uses : actions/setup-node@v4
387+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
388388 with :
389389 node-version-file : native-template/.nvmrc
390390 cache : npm
391391 cache-dependency-path : native-template/package-lock.json
392392 - name : " Cache iOS Build"
393- uses : actions/cache@v3
393+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
394394 with :
395395 path : native-template/ios/build
396396 key : ${{ runner.os }}-ios-build-${{ hashFiles('native-template/ios/**/*.swift', 'native-template/ios/**/*.h', 'native-template/ios/Podfile.lock') }}
@@ -407,7 +407,7 @@ jobs:
407407 run : npm i
408408
409409 - name : " Setup Pods cache"
410- uses : actions/cache@v3
410+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
411411 with :
412412 path : native-template/Pods
413413 key : ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
@@ -420,7 +420,7 @@ jobs:
420420 working-directory : native-template/ios
421421 run : xcodebuild -workspace NativeTemplate.xcworkspace -scheme nativeTemplate -configuration Debug -sdk iphonesimulator -derivedDataPath build ONLY_ACTIVE_ARCH=YES VALID_ARCHS="i386 x86_64"
422422 - name : " Archive iOS app"
423- uses : actions/upload-artifact@v4
423+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
424424 with :
425425 name : ios-app
426426 path : native-template/ios/build/Build/Products/**/*.app
@@ -434,18 +434,18 @@ jobs:
434434 fail-fast : false
435435 steps :
436436 - name : " Check out code"
437- uses : actions/checkout@v4
437+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
438438 with :
439439 fetch-depth : 0
440440 - name : " Set up node"
441- uses : actions/setup-node@v4
441+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
442442 with :
443443 node-version-file : .nvmrc
444444 cache : yarn
445445 - name : " Install dependencies"
446446 run : yarn install --immutable
447447 - name : " Download project MDA file"
448- uses : actions/download-artifact@v4
448+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
449449 with :
450450 name : mda
451451
@@ -478,7 +478,7 @@ jobs:
478478 # unzip android-app.zip -d android-app
479479
480480 - name : " Download Android app"
481- uses : actions/download-artifact@v4
481+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
482482 with :
483483 name : android-app
484484 path : android-app
@@ -507,7 +507,7 @@ jobs:
507507 sudo udevadm control --reload-rules
508508 sudo udevadm trigger --name-match=kvm
509509 - name : " Run the android tests"
510- uses : reactivecircus/android-emulator-runner@v2.32 .0
510+ uses : reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.0 .0
511511 with :
512512 api-level : 30
513513 target : google_apis
@@ -522,21 +522,21 @@ jobs:
522522 bash maestro/run_maestro_tests.sh android "${{ matrix.widget }}"
523523
524524 - name : " Archive runtime logs"
525- uses : actions/upload-artifact@v4
525+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
526526 if : always()
527527 with :
528528 name : android-runtime-logs-${{ matrix.widget }}
529529 path : log/*.log
530530 if-no-files-found : ignore
531531 - name : " Archive test screenshots"
532- uses : actions/upload-artifact@v4
532+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
533533 if : always()
534534 with :
535535 name : android-screenshots-${{ matrix.widget }}
536536 path : ${{ github.workspace }}/maestro/images/actual/android/**/*.png
537537 if-no-files-found : ignore
538538 - name : " Archive artifacts"
539- uses : actions/upload-artifact@v4
539+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
540540 if : always()
541541 with :
542542 name : android-artifacts-${{ matrix.widget }}
@@ -552,11 +552,11 @@ jobs:
552552 fail-fast : false
553553 steps :
554554 - name : " Check out code"
555- uses : actions/checkout@v4
555+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
556556 with :
557557 fetch-depth : 0
558558 - name : " Set up node"
559- uses : actions/setup-node@v4
559+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
560560 with :
561561 node-version-file : .nvmrc
562562 cache : yarn
@@ -565,7 +565,7 @@ jobs:
565565 yarn cache clean
566566 yarn install --immutable
567567 - name : " Download project MDA file"
568- uses : actions/download-artifact@v4
568+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
569569 with :
570570 name : mda
571571
@@ -637,21 +637,21 @@ jobs:
637637 bash maestro/run_maestro_tests.sh ios "${{ matrix.widget }}"
638638
639639 - name : " Archive runtime logs"
640- uses : actions/upload-artifact@v4
640+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
641641 if : always()
642642 with :
643643 name : ios-runtime-logs-${{ matrix.widget }}
644644 path : log/*.log
645645 if-no-files-found : ignore
646646 - name : " Archive test screenshots"
647- uses : actions/upload-artifact@v4
647+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
648648 if : always()
649649 with :
650650 name : ios-screenshots-${{ matrix.widget }}
651651 path : ${{ github.workspace }}/maestro/images/actual/ios/**/*.png
652652 if-no-files-found : ignore
653653 - name : " Archive artifacts"
654- uses : actions/upload-artifact@v4
654+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
655655 if : always()
656656 with :
657657 name : ios-artifacts-${{ matrix.widget }}
@@ -666,7 +666,7 @@ jobs:
666666 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
667667 steps :
668668 - name : " Check out code"
669- uses : actions/checkout@v4
669+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
670670
671671 - name : " Download Android screenshots"
672672 run : |
@@ -688,7 +688,7 @@ jobs:
688688
689689
690690 - name : " Set up node"
691- uses : actions/setup-node@v4
691+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
692692 with :
693693 node-version-file : .nvmrc
694694 cache : yarn
@@ -705,14 +705,14 @@ jobs:
705705 run : node ${{ github.workspace }}/maestro/helpers/compare_screenshots.js ios
706706
707707 - name : " Archive diff results"
708- uses : actions/upload-artifact@v4
708+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
709709 with :
710710 name : screenshot-diffs
711711 path : images/diffs
712712 if-no-files-found : ignore
713713
714714 - name : " Archive comparison results"
715- uses : actions/upload-artifact@v4
715+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
716716 with :
717717 name : comparison-results
718718 path : compare_output.txt
0 commit comments