uploaded the github actions for linting #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: SwiftLint | |
| # Run on pull-requests or pushes to main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'Swift/**/*.swift' | |
| - '.github/workflows/build/.swiftlint.yml' | |
| - '.github/workflows/lint.yml' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'Swift/**/*.swift' | |
| - '.github/workflows/build/.swiftlint.yml' | |
| - '.github/workflows/lint.yml' | |
| jobs: | |
| swiftlint: | |
| name: SwiftLint | |
| runs-on: macos-latest | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| - name: Install SwiftLint | |
| run: brew install swiftlint | |
| - name: SwiftLint version | |
| run: swiftlint version | |
| - name: Lint Swift code | |
| run: swiftlint lint Swift --config .github/workflows/build/.swiftlint.yml --strict --reporter github-actions-logging | |