Skip to content

Add support for "deadzones" when using tiled window spacing #700

Add support for "deadzones" when using tiled window spacing

Add support for "deadzones" when using tiled window spacing #700

Workflow file for this run

on:
pull_request: {}
permissions:
contents: read
pull-requests: write
name: Test
jobs:
test:
name: Test
runs-on: macos-26
strategy:
matrix:
xcode: ['26.0.1']
steps:
- name: Set Xcode ${{ matrix.xcode }}
run: |
echo "Available Xcode versions:"
ls /Applications | grep Xcode
echo "Choosing Xcode_${{ matrix.xcode }}.app"
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
xcodebuild -version
swift --version
swift package --version
- name: Checkout
uses: actions/checkout@main
with:
persist-credentials: false
- name: Set up environment
run: |
cp -n .env-example .env || true
chmod 644 .env
- name: "Debug"
run: |
pwd
ls -la
- name: Install dependencies
run: |
brew tap tuist/tuist
brew install --formula tuist
- name: Install & Run tuist
run: |
tuist clean
tuist install
tuist generate
- name: Run tests
if: success()
uses: sersoft-gmbh/xcodebuild-action@v3
with:
workspace: "Keyboard Cowboy.xcworkspace"
scheme: "Keyboard-Cowboy"
destination: platform=macOS
action: test
result-bundle-path: ResultBundle.xcresult
sdk: macosx
build-settings: CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED="NO"
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: Test results
path: ResultBundle.xcresult
- name: Add comment to PR
uses: actions/github-script@v6
if: always()
with:
script: |
const name = process.env.WORKFLOW_NAME;
const runUrl = `${process.env.REPO_URL}/actions/runs/${process.env.RUN_ID}`;
const success = process.env.JOB_STATUS === 'success';
const user = process.env.USER;
const body = `${name}: ${success ? 'succeeded ✅' : 'failed ❌'}\n${runUrl}\n\n@${user}`;
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body
});
env:
WORKFLOW_NAME: ${{ github.workflow }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
RUN_ID: ${{ github.run_id }}
JOB_STATUS: ${{ job.status }}
USER: ${{ github.event.pull_request.user.login }}