Skip to content

Commit 6a18b19

Browse files
committed
Update config
1 parent b5f41f0 commit 6a18b19

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/NativePipeline.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@ jobs:
2323
- name: "Determine scope"
2424
id: scope
2525
run: |
26-
if [ ${{ github.event_name }} == 'pull_request' ]; then
26+
echo "Event name: '${{ github.event_name }}'"
27+
if [ "${{ github.event_name }}" == "pull_request" ]; then
2728
echo "scope=--since --include '*-native'" >> $GITHUB_OUTPUT
28-
elif [ {{ github.event_name }} != 'pull_request' ]; then
29+
else
2930
echo "scope=--include '*-native'" >> $GITHUB_OUTPUT
3031
fi
32+
33+
- name: "Debug Scope Output"
34+
run: |
35+
echo "Scope is: ${{ steps.scope.outputs.scope }}"
3136
mendix-version:
3237
runs-on: ubuntu-22.04
3338
steps:
@@ -90,9 +95,9 @@ jobs:
9095
- name: "Install dependencies"
9196
run: yarn install --immutable
9297
- name: "Unit test"
93-
run: yarn workspaces foreach --all run test
98+
run: yarn workspaces foreach ${{ needs.scope.outputs.scope }} run test
9499
- name: "Run build for development"
95-
run: yarn workspaces foreach --all run build
100+
run: yarn workspaces foreach ${{ needs.scope.outputs.scope }} run build
96101
env:
97102
NODE_OPTIONS: --max_old_space_size=6144
98103
- name: "Upload resources artifact"
@@ -379,7 +384,7 @@ jobs:
379384
adb push "/Users/runner/work/native-widgets/native-widgets/detox/apps/app-appstore-debug-androidTest.apk" "/data/local/tmp/detox/Test.apk"
380385
adb shell pm install -r -g -t /data/local/tmp/detox/Application.apk 2>/dev/null
381386
adb shell pm install -r -g -t /data/local/tmp/detox/Test.apk 2>/dev/null
382-
yarn workspaces foreach --all run test:e2e:android
387+
yarn workspaces foreach ${{ needs.scope.outputs.scope }} run test:e2e:android
383388
- name: "Archive runtime logs"
384389
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
385390
if: always()
@@ -456,7 +461,7 @@ jobs:
456461
- name: List supported iOS devices
457462
run: applesimutils --list
458463
- name: "Run tests"
459-
run: yarn workspaces foreach --all run test:e2e:ios
464+
run: yarn workspaces foreach ${{ needs.scope.outputs.scope }} run test:e2e:ios
460465
- name: "Archive runtime logs"
461466
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
462467
if: always()

0 commit comments

Comments
 (0)