Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaSimsic committed Sep 3, 2024
1 parent b5f41f0 commit 594d219
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/NativePipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ jobs:
- name: "Determine scope"
id: scope
run: |
if [ ${{ github.event_name }} == 'pull_request' ]; then
echo "Event name: '${{ github.event_name }}'"
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "scope=--since --include '*-native'" >> $GITHUB_OUTPUT
elif [ {{ github.event_name }} != 'pull_request' ]; then
else
echo "scope=--include '*-native'" >> $GITHUB_OUTPUT
fi
- name: "Debug Scope Output"
run: |
echo "Scope is: ${{ steps.scope.outputs.scope }}"
mendix-version:
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -90,9 +95,9 @@ jobs:
- name: "Install dependencies"
run: yarn install --immutable
- name: "Unit test"
run: yarn workspaces foreach --all run test
run: yarn workspaces foreach ${{ needs.scope.outputs.scope }} run test
- name: "Run build for development"
run: yarn workspaces foreach --all run build
run: yarn workspaces foreach ${{ needs.scope.outputs.scope }} run build
env:
NODE_OPTIONS: --max_old_space_size=6144
- name: "Upload resources artifact"
Expand Down Expand Up @@ -379,7 +384,7 @@ jobs:
adb push "/Users/runner/work/native-widgets/native-widgets/detox/apps/app-appstore-debug-androidTest.apk" "/data/local/tmp/detox/Test.apk"
adb shell pm install -r -g -t /data/local/tmp/detox/Application.apk 2>/dev/null
adb shell pm install -r -g -t /data/local/tmp/detox/Test.apk 2>/dev/null
yarn workspaces foreach --all run test:e2e:android
yarn workspaces foreach ${{ steps.scope.outputs.scope }} run test:e2e:android
- name: "Archive runtime logs"
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: always()
Expand Down Expand Up @@ -456,7 +461,7 @@ jobs:
- name: List supported iOS devices
run: applesimutils --list
- name: "Run tests"
run: yarn workspaces foreach --all run test:e2e:ios
run: yarn workspaces foreach ${{ steps.scope.outputs.scope }} run test:e2e:ios
- name: "Archive runtime logs"
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: always()
Expand Down

0 comments on commit 594d219

Please sign in to comment.