-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
9b1544c
commit ce52c00
Showing
1 changed file
with
15 additions
and
23 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,14 +29,8 @@ jobs: | |
# url: http://127.0.0.1:8082 | ||
# reportName: ui-test-fails-report-linux | ||
- os: macOS-latest | ||
runIde: | | ||
export DISPLAY=:99 | ||
Xvfb :99 -screen 0 1920x1080x24 & | ||
sleep 3 | ||
./gradlew runIdeForUiTests & | ||
runTests: | | ||
export DISPLAY=:99 | ||
./gradlew test | ||
runIde: ./gradlew runIdeForUiTests & | ||
runTests: ./gradlew test | ||
url: http://127.0.0.1:8082 | ||
reportName: ui-test-fails-report-mac | ||
# - os: windows-latest | ||
|
@@ -49,21 +43,6 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
# - name: Disable macOS notifications | ||
# if: runner.os == 'macOS' | ||
# run: | | ||
# defaults write com.apple.systempreferences AttentionPrefBundleIDs 0 | ||
# defaults write com.apple.notificationcenterui bannerTime 0 | ||
# defaults -currentHost write com.apple.notificationcenterui doNotDisturb -boolean true | ||
# defaults -currentHost write com.apple.notificationcenterui doNotDisturbDate -date "`date -u +\"%Y-%m-%d %H:%M:%S +000\"`" | ||
# killall NotificationCenter || true | ||
|
||
- name: Install Xvfb on macOS | ||
if: runner.os == 'macOS' | ||
run: | | ||
brew install xquartz | ||
brew install xvfb | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -121,6 +100,19 @@ jobs: | |
cd ../../binary | ||
npm run build | ||
- name: Enable Do Not Disturb | ||
if: ${{ matrix.os == 'macOS-latest' }} | ||
run: | | ||
# Enable Do Not Disturb mode | ||
defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturb -boolean true | ||
defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturbDate -date "$(date +%s)" | ||
# Remove existing notifications | ||
rm -rf ~/Library/Application\ Support/NotificationCenter/* | ||
# Restart Notification Center to apply changes | ||
killall NotificationCenter || true | ||
- name: Run IDE | ||
run: ${{ matrix.runIde }} | ||
|
||
|