Skip to content

Implement auto-update system with Sparkle framework #4

Implement auto-update system with Sparkle framework

Implement auto-update system with Sparkle framework #4

Workflow file for this run

# SwiftLint Code Quality Check
# Runs on Ubuntu for faster execution, inspired by macos-auto-clicker-main
name: SwiftLint
on:
push:
branches: [ main, staging, dev ]
paths:
- '**/*.swift'
- '.swiftlint.yml'
- '.github/workflows/swiftlint.yml'
pull_request:
branches: [ main, staging, dev ]
paths:
- '**/*.swift'
- '.swiftlint.yml'
- '.github/workflows/swiftlint.yml'
# Cancel previous runs when new commits are pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
swiftlint:
name: πŸ” SwiftLint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: πŸ“₯ Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 1 # Only need current commit for linting
- name: πŸ”§ Install SwiftLint
run: |
# Install SwiftLint using the official install script
curl -sSL https://github.com/realm/SwiftLint/releases/latest/download/swiftlint_linux.zip -o swiftlint.zip
unzip swiftlint.zip
sudo mv swiftlint /usr/local/bin/
swiftlint version
- name: πŸ” Run SwiftLint
run: |
echo "πŸ” Running SwiftLint with strict enforcement..."
swiftlint lint --strict --reporter github-actions-logging
echo "βœ… SwiftLint passed successfully!"
- name: πŸ“Š SwiftLint Summary
if: always()
run: |
echo "πŸ“‹ SwiftLint Analysis Complete"
echo "🎯 Configuration: .swiftlint.yml"
echo "πŸ“ Scanned: Sources/"
echo "πŸ”§ Mode: Strict (warnings = errors)"