Fix window centering strategy #2895
This file contains hidden or 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
| name: Build and test | |
| on: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| branches: ['main'] | |
| types: [synchronize, opened, reopened, ready_for_review] | |
| jobs: | |
| markedit-mac: | |
| name: MarkEditMac | |
| runs-on: macos-26 | |
| if: github.event.pull_request.draft == false | |
| env: | |
| node-version: '22.x' | |
| DEVELOPER_DIR: /Applications/Xcode_26.0.app/Contents/Developer | |
| defaults: | |
| run: | |
| working-directory: 'CoreEditor' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Use Node.js ${{ env.node-version }} | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ env.node-version }} | |
| cache: 'npm' | |
| cache-dependency-path: '**/yarn.lock' | |
| - name: Build and test CoreEditor | |
| run: | | |
| corepack enable | |
| yarn install | |
| yarn build | |
| yarn test | |
| - name: Build MarkEditMac | |
| run: | | |
| xcodebuild build -project ../MarkEdit.xcodeproj -scheme MarkEditMac -destination 'platform=macOS' CODE_SIGN_IDENTITY="" CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO | |
| - name: Test MarkEditCoreTests | |
| run: | | |
| xcodebuild test -project ../MarkEdit.xcodeproj -scheme MarkEditCoreTests -destination 'platform=macOS' CODE_SIGN_IDENTITY="" CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO | |
| - name: Test ModulesTests | |
| run: | | |
| xcodebuild test -project ../MarkEdit.xcodeproj -scheme ModulesTests -destination 'platform=macOS' CODE_SIGN_IDENTITY="" CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO |