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 9b1544c commit ce52c00
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions .github/workflows/run-jb-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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 }}

Expand Down

0 comments on commit ce52c00

Please sign in to comment.