GitHub Action
Prepare macOS runner
v1
Latest version
- change computer name to be unique
- close notification windows
- turn on Do not disturb
- disable firewall
- close Finder windows
How to use:
- name: Prepare macOS runner
uses: paulz/prepare-macos@v1
Xcode UI Tests are sensitive to open windows and interruptions. This action helps to prevent following system alerts during a test run:
- Alert that computer with this name is already in use, see example
- Notification Center alerts
- macOS upgrade is available alerts
- Firewall prompt to receive incoming connections
- Finder window blocking screenshot
- This action can run before checkout to rename computer earlier. It takes macOS a few seconds to report the conflict.
- Reuse across multiple projects instead of copying shell script.
- Put together ideas to help avoiding flaky UI tests.