feat(debug): add migration capabilities debug view with enable propos… #4660
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: SwiftLint | |
| on: | |
| workflow_dispatch: # ← optional, to run manually | |
| pull_request: | |
| branches: ['main', 'dev'] | |
| push: | |
| branches: ['main', 'dev'] | |
| env: | |
| SWIFTLINT_VERSION: '0.62.2' | |
| jobs: | |
| SwiftLint: | |
| name: SwiftLint | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install SwiftLint ${{ env.SWIFTLINT_VERSION }} | |
| run: | | |
| curl -sL "https://github.com/realm/SwiftLint/releases/download/${SWIFTLINT_VERSION}/portable_swiftlint.zip" -o swiftlint.zip | |
| unzip -o swiftlint.zip -d swiftlint | |
| sudo mv swiftlint/swiftlint /usr/local/bin/swiftlint | |
| rm -rf swiftlint swiftlint.zip | |
| swiftlint version | |
| - name: Cache SwiftLint cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .swiftlint-cache | |
| key: swiftlint-${{ env.SWIFTLINT_VERSION }}-${{ hashFiles('.swiftlint.yml') }}-${{ hashFiles('**/*.swift') }} | |
| restore-keys: | | |
| swiftlint-${{ env.SWIFTLINT_VERSION }}-${{ hashFiles('.swiftlint.yml') }}- | |
| - name: Run SwiftLint | |
| # --strict makes warnings fail the job. --cache-path makes re-runs | |
| # on the same PR (e.g. after a force-push that touches a few files) | |
| # only re-analyze what changed. | |
| run: swiftlint lint --strict --cache-path .swiftlint-cache |