-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b871c34
commit adab643
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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: | ||
|