From adab64397bd1a1af7dee344f7d4fe91cfd6aaeb2 Mon Sep 17 00:00:00 2001 From: Test Date: Sun, 15 Dec 2024 16:57:40 -0800 Subject: [PATCH] Update run-jb-tests.yaml --- .github/workflows/run-jb-tests.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-jb-tests.yaml b/.github/workflows/run-jb-tests.yaml index 69711ee012..78e1d97a45 100644 --- a/.github/workflows/run-jb-tests.yaml +++ b/.github/workflows/run-jb-tests.yaml @@ -29,12 +29,7 @@ jobs: # url: http://127.0.0.1:8082 # reportName: ui-test-fails-report-linux - os: macOS-latest - # We need to disable notifications to prevent them from rendering on top of the IDE - runIde: | - sudo defaults write /Library/Preferences/com.apple.notificationcenterui.plist DoNotDisturb -boolean true - sudo killall NotificationCenter || true - sudo defaults write com.apple.systempreferences AttentionPrefBundleIDs 0 - ./gradlew runIdeForUiTests & + runIde: ./gradlew runIdeForUiTests & runTests: ./gradlew test url: http://127.0.0.1:8082 reportName: ui-test-fails-report-mac @@ -48,6 +43,14 @@ jobs: steps: - uses: actions/checkout@v4.1.5 + # We need to disable notifications to prevent them from rendering on top of the IDE + - name: Disable notifications on macOS + if: runner.os == 'macOS' + run: | + sudo defaults write /System/Library/LaunchAgents/com.apple.notificationcenterui KeepAlive -bool false + killall NotificationCenter || true + launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist || true + - name: Setup Java uses: actions/setup-java@v4.5.0 with: