Fix test interference from shared notification IDs (#524) #2305
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: Run SwiftLint | |
| # --strict makes warnings fail the job | |
| run: swiftlint lint --strict |