Skip to content

Commit

Permalink
Update run-jb-tests.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Erichsen committed Dec 16, 2024
1 parent b871c34 commit adab643
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/run-jb-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -48,6 +43,14 @@ jobs:
steps:
- uses: actions/[email protected]

# 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/[email protected]
with:
Expand Down

0 comments on commit adab643

Please sign in to comment.