lint.yml 588 B

123456789101112131415161718192021222324252627282930
  1. # Lints the project using SwiftLint
  2. name: SwiftLint
  3. on:
  4. push:
  5. branches:
  6. - master
  7. - develop
  8. pull_request:
  9. types: [synchronize, opened, reopened, ready_for_review]
  10. branches:
  11. - master
  12. - develop
  13. concurrency:
  14. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  15. cancel-in-progress: true
  16. jobs:
  17. Lint:
  18. runs-on: ubuntu-latest
  19. if: github.event.pull_request.draft == false
  20. steps:
  21. - uses: actions/checkout@v4
  22. - name: GitHub Action for SwiftLint
  23. uses: norio-nomura/action-swiftlint@3.2.1