diff --git a/.github/workflows/swiftlint.yml b/.github/workflows/swiftlint.yml index f771144a..640ca0ef 100644 --- a/.github/workflows/swiftlint.yml +++ b/.github/workflows/swiftlint.yml @@ -13,6 +13,12 @@ on: - '.github/workflows/swiftlint.yml' - '.swiftlint.yml' - '**/*.swift' + pull_request: + paths: + - '.github/workflows/swiftlint.yml' + - '.swiftlint.yml' + - '**/*.swift' + jobs: @@ -22,6 +28,10 @@ jobs: - uses: actions/checkout@v1 - name: GitHub Action for SwiftLint uses: norio-nomura/action-swiftlint@3.2.1 + - name: GitHub Action for SwiftLint with --strict + uses: ezraberch/action-swiftlint@3.2.1 + with: + args: --strict - name: GitHub Action for SwiftLint (Only files changed in the PR) uses: norio-nomura/action-swiftlint@3.2.1 env: