Fix CI scripts and workflows to use renamed app 'Claude Island (Fork)' #2
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: Code Quality | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| # Cancel in-progress runs for the same branch/PR | |
| concurrency: | |
| group: quality-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| prek: | |
| name: Pre-commit Checks | |
| runs-on: macos-latest | |
| if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Verify Swift version | |
| run: | | |
| swift --version | |
| SWIFT_VERSION=$(swift --version 2>&1 | sed -n 's/.*Apple Swift version \([0-9]*\.[0-9]*\).*/\1/p') | |
| if [[ -z "$SWIFT_VERSION" ]]; then | |
| echo "::error::Could not detect Swift version from 'swift --version' output" | |
| exit 1 | |
| fi | |
| echo "Detected Swift $SWIFT_VERSION" | |
| SWIFT_MAJOR=$(echo "$SWIFT_VERSION" | cut -d. -f1) | |
| SWIFT_MINOR=$(echo "$SWIFT_VERSION" | cut -d. -f2) | |
| if [[ "$SWIFT_MAJOR" -lt 6 ]] || { [[ "$SWIFT_MAJOR" -eq 6 ]] && [[ "$SWIFT_MINOR" -lt 2 ]]; }; then | |
| echo "::error::Swift 6.2+ required. Found $SWIFT_VERSION" | |
| exit 1 | |
| fi | |
| - name: Install Swift tools | |
| run: | | |
| brew update | |
| brew install swiftformat swiftlint shellcheck | |
| echo "SwiftFormat: $(swiftformat --version)" | |
| echo "SwiftLint: $(swiftlint version)" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Run prek checks | |
| uses: j178/prek-action@v2 | |
| with: | |
| extra-args: --all-files --hook-stage manual | |
| env: | |
| SKIP: no-commit-to-branch |